is Camera Hdr Supported - Android android.hardware

Android examples for android.hardware:Camera Feature

Description

is Camera Hdr Supported

Demo Code

import java.util.List;

import android.hardware.Camera.Parameters;

public class Main {

  public static final String SCENE_MODE_HDR = "hdr";

  public static boolean isCameraHdrSupported(Parameters params) {
    List<String> supported = params.getSupportedSceneModes();
    return (supported != null) && supported.contains(SCENE_MODE_HDR);
  }/*from   w w  w .j  ava 2s  .c o  m*/

}

Related Tutorials