I am using the new Camera2 api trying to implement touch focus and can't seem to find an equivalent to the Camera1 api setFocusArea(). I want a user to be able to touch the preview screen and have the camera focus on that area. There doesnt seem to be any function relating x-y position to focus in the new API.
Asked
Active
Viewed 2,168 times
1 Answers
-1
Use CONTROL_AF_REGIONS, CONTROL_AE_REGIONS, and if supported, CONTROL_AWB_REGIONS.

Eddy Talvala
- 17,243
- 2
- 42
- 47
-
could you please provide an example? – vkislicins Nov 17 '15 at 17:30
-
@Eddy Talvala, please provide an example Eddy – user0770 Mar 04 '16 at 17:32