C
C
Chvalov2015-09-29 23:02:55
Android
Chvalov, 2015-09-29 23:02:55

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

1 answer(s)
S
SosnovschenkoR, 2015-09-29
@Chvalov

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
}

And you may ask why is this necessary?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question