Phone device Has No Flash - Android Phone

Android examples for Phone:Camera

Description

Phone device Has No Flash

Demo Code


//package com.java2s;
import android.content.Context;
import android.content.pm.PackageManager;

public class Main {
    public static boolean deviceHasNoFlash(Context context) {
        return !context.getPackageManager().hasSystemFeature(
                PackageManager.FEATURE_CAMERA_FLASH);
    }//  w ww .j  a v a2s .  c o  m
}

Related Tutorials