Answer the question
In order to leave comments, you need to log in
Is it possible to programmatically determine the type of Android device Tablet/Phone?
How can you programmatically determine whether it’s a phone or a tablet, by the screen size it’s stupid now in phones the resolution is higher than that of tablets, imei numbers are not clear, now the Chinese are shoving two SIM cards into tablets, is there any normal way to determine what type devices?
Answer the question
In order to leave comments, you need to log in
An interesting article came across here:
stackoverflow.com/questions/9279111/determine-if-t...
boolean tabletSize = getResources().getBoolean(R.bool.isTablet);
if (tabletSize) {
// do something
} else {
// do something else
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question