Restrict app to be installed on android tablets and kindle devices only

388 Views Asked by At

Until now I was restricting my app to only run on tablets by having something like this in the manifest file:

<supports-screens
    android:largeScreens="true"
    android:normalScreens="false"
    android:requiresSmallestWidthDp="600"
    android:smallScreens="false"
    android:xlargeScreens="true" />

I am preparing to launch on Amazon Fire for the first time and because of the following restriction: "requiresSmallestWidthDp="600", many users will be affected as the app cannot be installed on this device. I am getting the following error message: "android:requiresSmallestWidthDp = '600'; device requires '527'".

As the Fire 2015 is the most popular tablet, I would really like to allow the app to be installed on it, but at the same time I don't want my app to be installed on phones. Any suggestion on how to achieving this?

1

There are 1 best solutions below

0
On

There is no clear technical distinction between a tablet and a phone, so if you really need to filter out non-tablets, you need to resort to other filters. If it's about your app's UI, the support-screens and compatible-screens are your best bets. Just remember that some phones have a higher screen resolution than some tablets.