Java tutorial
//package com.java2s; import android.content.Context; import android.telephony.TelephonyManager; public class Main { private static Context context; public static boolean isPad() { TelephonyManager telephony = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); if (telephony.getPhoneType() == TelephonyManager.PHONE_TYPE_NONE) { return true; } else { return false; } } }