Java tutorial
//package com.java2s; import android.content.Context; import android.content.pm.PackageManager; public class Main { /** * Helper function to check if this app and device is able to make call * * @param context should be an Activity context */ public static boolean isTelephonyAvailable(Context context) { return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY); } }