my problem is that emulated in Android Studio Nexus 10 doesn't acts like a phone. I have tried 2 methods to detect is the device a tablet or phone:
public static boolean isTablet(Context context) {
return (context.getResources().getConfiguration().screenLayout
& Configuration.SCREENLAYOUT_SIZE_MASK)
>= Configuration.SCREENLAYOUT_SIZE_LARGE;
}
and the variant from here Determine if the device is a smartphone or tablet? Both doesn't work with nexus 10 while working with nexus 7 and another tablet. May be it is the problem of emulator, I dont know. Help me with this please.