Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (device)
Viewing all articles
Browse latest Browse all 250

Android - How to differentiate between a smaptphone and a tablet?

0
0

I've come across this problem recently, since Android 4.0 and greater can be found in both smartphones and tablets, how can I differentiate between them? If I try to distinguish based on resolutions it wouldn't work right, since many high end smartphones have smaller screens but high screen resolutions, while some tablets have bigger screens but smaller resolutions.

The app I'm working on work should be displayed in portrait on smartphones, in the case of tablets it should be shown in landscape.

What's the right approach to differentiate between a tablet and a smartphone?

Thanks for any help in advance.


Viewing all articles
Browse latest Browse all 250

Latest Images

Trending Articles





Latest Images