Java tutorial
//package com.java2s; //License from project: Open Source License import android.hardware.Camera; import android.support.annotation.NonNull; public class Main { static boolean isUsingFocusMode(@NonNull String focusMode, @NonNull Camera camera) { return camera.getParameters().getFocusMode().equals(focusMode); } }