Is it possible to somehow get the camera settings from the standard application?
2 answers
The camera in Android can be accessed in two ways. The first way is to implement the functionality of working with the camera in your application. At the same time, you will have to work with an instance of the Camera class (for connecting to the camera), an instance of the SurfaceView class (for organizing a preview). Using data objects of classes, you can access the camera settings. The second way is to access the Camera application with the help of implicit intensity and get the result from it. Including the settings.
- Here the second way interests. How to get settings from the Camera application. - Frozik6k
- Depending on the API, you can use either the Camera.Parameters class that is outdated in the API or the CameraCharacteristics class - ZigZag
|
android.hardware
"deprecated"
Camera camera = Camera.open(); camera.getParameters()...; android.hardware.camera2
Added in API level 21
CameraManager manager = (CameraManager) getSystemService(CAMERA_SERVICE); manager.getCameraCharacteristics(...); - There is a standard application in the phone for taking pictures, it has already been configured: on / off. photo flash and other options. In my program, I will get these settings using
camera.getParameters()...;Or I will receive parameters which I can adjust? PS I would like to get exactly the settings. - Frozik6k
|