Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.hardware.Camera;

import java.util.List;

public class Main {
    public static final String SCENE_MODE_HDR = "hdr";

    public static boolean isCameraHdrSupported(Camera.Parameters params) {
        List<String> supported = params.getSupportedSceneModes();
        return (supported != null) && supported.contains(SCENE_MODE_HDR);
    }
}