대부분의 개발자는 CameraX를 사용하는 것이 좋습니다. CameraX는 다양한 Android 기기(Android 5.0 이상)를 지원하고 일반적인 사용 사례를 중심으로 설계된 일관된 높은 수준의 API를 제공하는 Jetpack 라이브러리입니다. CameraX는 기기 호환성 문제를 해결하므로, 앱에 기기별 코드를 추가할 필요가 없습니다.
CameraX는 Camera2 패키지를 기반으로 빌드됩니다. 복잡한 사용 사례를 지원하기 위해 하위 수준의 카메라 제어가 필요한 경우 Camera2를 사용하는 것이 좋지만 API가 CameraX보다 더 복잡합니다. 기기별 구성을 관리해야 합니다. Camera2는 CameraX와 마찬가지로 Android 5.0(API 수준 21) 이상에서 작동합니다.
원래 Android Camera 클래스는 지원 중단되었습니다. 새로운 앱은 CameraX (권장) 또는 Camera2를 사용해야 하며, 새로운 기능을 활용하고 향후 기기와의 호환성을 유지하려면 기존 앱을 이전해야 합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[null,null,["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# Choose a camera library\n\n| **Note:** If you want to perform basic camera actions like capturing a photo or video using the device's default camera application, see [Camera intents](/training/camera/camera-intents).\n\nIf you want to add camera functionality to an Android app, you have three main options:\n\n- [CameraX](/media/camera/camerax)\n- [Camera2](/media/camera/camera2)\n- [Camera](/media/camera/camera-deprecated) (deprecated)\n\nFor most developers, [CameraX](/training/camerax) is recommended. CameraX is a Jetpack library that supports the vast majority of Android devices (Android 5.0 and higher) and provides a consistent, high-level API designed around common use cases. CameraX resolves device compatibility issues for you so that you don't have to add device-specific code to your app.\n\nCameraX is built on top of the [Camera2](/training/camera2) package. If you need low-level camera control to support complex use cases, Camera2 is a good option, but the API is more complex than CameraX. It requires you to manage device-specific configurations. Like CameraX, Camera2 works on Android 5.0 (API level 21) and higher.\n\nThe original Android [Camera](/training/camera-deprecated) class is deprecated. New apps should use CameraX (recommended) or Camera2, and existing apps should migrate to take advantage of new features and to avoid losing compatibility with future devices."]]