is Hardware Available by type - Android Hardware

Android examples for Hardware:Device Feature

Description

is Hardware Available by type

Demo Code


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

public class Main {
    public static boolean isHardwareAvailable(Context ctx, String type_hw) {
        return ctx.getPackageManager().hasSystemFeature(type_hw);
    }//from   w  w  w.  j a  v  a 2 s.com
}

Related Tutorials