Android In Camera How To Set Focusable Area In Api 14 Or Greater
i tried to add focusable area in 'Camera.getParameters()' but don't reflect in Camera surface view. my code like this Camera.Area area = new Area(new Rect(-500, -500, 500,500), 0);
Solution 1:
Ensure you have set the focus mode to one of these:
Focus area only has effect if the current focus mode is FOCUS_MODE_AUTO, FOCUS_MODE_MACRO, FOCUS_MODE_CONTINUOUS_VIDEO, or FOCUS_MODE_CONTINUOUS_PICTURE.
From http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getFocusAreas()
Solution 2:
did you tried calling getFocusareas() first ? check first if the getFocusareas() returns a non-zero value and then try to call setfocusareas()
Post a Comment for "Android In Camera How To Set Focusable Area In Api 14 Or Greater"