Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.List;

import android.hardware.Camera;

public class Main {
    public static boolean cameraHasColorEffect(Camera c, String colorEffect) {
        List<String> listOfColorEffects = c.getParameters().getSupportedColorEffects();
        if (listOfColorEffects.indexOf(colorEffect) != -1) {
            return true;
        }
        return false;
    }
}