Android app for tablets only

Question:

I developed an android application using Android Studio , in the xml files of the screens I used the Nexus 10 layout because my application is only for tablets.

After I uploaded the application to the Google Play store, I saw that they had 4194 devices enabled to use my application, that is, smartphones and tablets.

How do I limit these devices to tablets only?

Answer:

You can enable/disable the available screen types by updating the support-screens entry of your AndroidManifest.xml file:

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

Source

You can still find a full section of documentation on supporting different screens here

Scroll to Top