Android examples for Camera:Camera Focus
set Camera Focus Mode
//package com.java2s; import android.hardware.Camera; import java.util.List; public class Main { public static void setCameraFocusMode(String focusMode, Camera camera) { Camera.Parameters parameters = camera.getParameters(); List<String> sfm = parameters.getSupportedFocusModes(); if (sfm.contains(focusMode)) { parameters.setFocusMode(focusMode); }// w ww. j ava2 s . co m camera.setParameters(parameters); } }