get Has Telephony - Android Hardware

Android examples for Hardware:Sim Card

Description

get Has Telephony

Demo Code


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

public class Main {
    private static boolean getHasTelephony(Context context) {
        boolean hasTelephony = context.getPackageManager()
                .hasSystemFeature(PackageManager.FEATURE_TELEPHONY);
        return hasTelephony;
    }/*  w w w  . j  a va  2  s.  c om*/
}

Related Tutorials