Java tutorial
//package com.java2s; //License from project: Open Source License import android.hardware.*; public class Main { public static void autoFocus(Camera camera) { try { camera.autoFocus(null); } catch (Exception e) { e.printStackTrace(); } } }