Android examples for android.hardware:Snapshot
is Camera Video Snapshot Supported
import android.hardware.Camera.Parameters; public class Main { public static final String TRUE = "true"; private static final String VIDEO_SNAPSHOT_SUPPORTED = "video-snapshot-supported"; public static boolean isVideoSnapshotSupported(Parameters params) { return TRUE.equals(params.get(VIDEO_SNAPSHOT_SUPPORTED)); }/*w ww. ja va 2 s . com*/ public static boolean equals(Object a, Object b) { return (a == b) || (a == null ? false : a.equals(b)); } }