Here you can find the source of isTablet(Configuration configuration)
public static boolean isTablet(Configuration configuration)
//package com.java2s; //License from project: Open Source License import android.content.res.Configuration; public class Main { public static boolean isTablet(Configuration configuration) { int cur = configuration.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK; if (cur == Configuration.SCREENLAYOUT_SIZE_UNDEFINED) return false; return cur >= Configuration.SCREENLAYOUT_SIZE_LARGE; }//from w ww .ja v a 2 s . c o m }