Reputation: 11
I am curious if the front camera of a Samsung galaxy s2 can use auto-focus with the front camera? There doesn't seem to be any documentation from Android to my knowledge.
Upvotes: 1
Views: 3666
Reputation: 1043
if (Camera.getNumberOfCameras() > 1) {
final Camera camera = Camera.open(1);
final String focusMode = camera.getParameters().getFocusMode();
Log.v("FocusMode of front camera", focusMode);
}
=> "fixed"
Focus is fixed. The camera is always in this mode if the focus is not adjustable.
Therefor, the answer is no.
Upvotes: 2