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 isFocusModeSupported(@NonNull String focusMode, @NonNull Camera camera) { return camera.getParameters().getSupportedFocusModes().contains(focusMode); } }