private bool isTabletModeDetermined = false;
private bool isTabletMode = false;
//....
public static boolean isTablet(Context paramContext) {
if (!isTabletModeDetermined) {
if (paramContext.getResources().getConfiguration().smallestScreenWidthDp>= 600)
isTabletMode = true;
isTabletModeDetermined = true;
}
return isTabletMode;
}