Skip to content Skip to sidebar Skip to footer

Distinguish Between Tablet And Smart Phone On Ics

I understand that by default (pre ICS), to distinguish between a Tablet & Smartphone, a developer can use the sdk version in the Android Manifest (apart from screen size and op

Solution 1:

The only significant differences between tablets and phones are, in general, screen size and the presence of telephony capabilities, plus the fact that phones will generally have mobile data while tablets may be wifi-only. With ICS, the software running on the two classes of device is basically the same, so the only interesting distinguishing features are these points. If a device has a screen big enough for your app and provides all the required capabilities, does it matter if it's a phone or a tablet?

I'd say that screen size is exactly what you should be filtering on. It's not 'phone version' and 'tablet version' so much as 'little screen' and 'big screen'.

Solution 2:

You can also check build.prop

Tablets running ICS should have this set to tablet, phones would be phone/default

ro.build.characteristics=

Post a Comment for "Distinguish Between Tablet And Smart Phone On Ics"