While it is against normal practice, I explored creating a tablet only version of this application and strangely ran into all sorts of issues.
My first attempt was to set the minSdkVersion to 15 (greater than 13) and then use android:requiresSmallestWidthDp="600" to target only large enough screens. This did not work as expected (a normal size phone seemed to pick up the option to install).
The following article appears to address this: http://developer.android.com/guide/practices/screens-distribution.html
So, I followed their instructions and hope that it is right (would have to find a device that was large screen but was smaller than 600dp on the smaller dimension to see).
Another annoying this is that I was fighting the Designed for phones label in the Play Store. Tried things like adding a layout for xlarge and ensuring that android:largeScreens="true" and android:xlargeScreens="true" were set. After much Googling, it appears that one need to provide screenshots with lots of space being used too.
The result: https://github.com/larkintuckerllc/HelloAndroid/commit/8fbb8c75f34b6848048a251b02ff8928588c68f8
No comments:
Post a Comment