Android camera2 API get focus distance in AF mode
问题 I'm working with Android camera2 API. I can get focus distance value using LENS_FOCUS_DISTANCE in manual focus mode. However, the property is always zero in AF mode. Is there any way to get focus distance in AF mode? 回答1: Shortest distance from frontmost surface of the lens that can be brought into sharp focus. If the lens is fixed-focus, this will be 0. http://developer.android.com/intl/es/reference/android/hardware/camera2/CameraCharacteristics.html In other way, if you want to manage focus