Differentiating between a small or a large screen (with similar screen resolution)
I would like to optimize my app so that the screen layout is different if it runs on a phone or a tablet. However, Android phones and tablets can sometimes have similar screen resolutions.
- Galaxy Nexus has 4.65" 1280 x 720 screen
- Galaxy Tab 10.1 has 10.1" 1280 x 800 screen
so using display.contentScaleX would return almost the same number for both devices.
The ideal would be to be able to detect the difference within config.lua (as is done for iPhone vs. iPad), but the problem is that system.getInfo("model") returns the specific model name of that device and unless I code all the possible Android device names, I can't see how to differentiate between phone and tablet.
Does anyone have any suggestions?