code: public boolean isTablet(Context context) {
  	    boolean xlarge = ((context.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == 4);
  	    boolean large = ((context.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_LARGE);
  	    return (xlarge || large);
  	}
docs: This method is use to determine if the current Android device is a tablet
  or phone.
  
  @param context
  @return