is Camera Auto Exposure Lock Supported - Android android.hardware

Android examples for android.hardware:Camera Feature

Description

is Camera Auto Exposure Lock Supported

Demo Code

import android.hardware.Camera.Parameters;

public class Main {

  public static final String TRUE = "true";
  private static final String AUTO_EXPOSURE_LOCK_SUPPORTED = "auto-exposure-lock-supported";

  public static boolean isAutoExposureLockSupported(Parameters params) {
    return TRUE.equals(params.get(AUTO_EXPOSURE_LOCK_SUPPORTED));
  }/* w  w  w.  j a  v a2  s  .co  m*/

  public static boolean equals(Object a, Object b) {
    return (a == b) || (a == null ? false : a.equals(b));
  }

}

Related Tutorials