Android examples for Hardware:Device Feature
Is device a pad
//package com.java2s; import android.content.Context; import android.content.res.Configuration; public class Main { public static boolean isPad(Context context) { return (context.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) >= Configuration.SCREENLAYOUT_SIZE_LARGE; }//from w w w.j a va2 s . com }