Skip to main content
Legend
Feb 26, 2013 11:52 AM UTC
Answered

How to specify app is only for Android tablet-sized screens?

See subject!

I  want to find the equivalent of setting device family for iOS but for Android. EG: In my app descriptor XML, I have defined that the app will only run on iPad and not iPhone or iPod. I want to do the same for Android so as to allow it to run on a Xoom or a Nexus 7 or whatever other tablet you may have but _not_ to run on a phone...

I presume this is simple, but I couldn't find the right terms to google with!

Thanks,

Gaius

This topic is closed to new replies. Start a new post to keep the conversation going.
Colin Holgate
Colin HolgateCorrect answer
Inspiring
Feb 26, 2013 1:58 PM UTC

4 replies

Inspiring
Mar 2, 2013 4:00 AM UTC

I add the following tag to my "manifestAdditions" (inside <manifest>...</manifest>) in the descriptor:

<supports-screens

                                        android:smallScreens="false"

                                        android:normalScreens="false"

                                        android:largeScreens="true"

                                        android:xlargeScreens="true"

/>

This makes the app not appear in Google Play for phone devices (except for the Galaxy Note phone, which presents itself as a "largeScreen" device).

Translate
Colin Holgate
Colin HolgateCorrect answer
Inspiring
Feb 26, 2013 1:58 PM UTC
Legend
Feb 26, 2013 2:33 PM UTC

That's brilliant.

Thank-you,

G

Translate
Inspiring
Feb 26, 2013 1:49 PM UTC

I don't think it's possible because of the million variations of Android out there. You might have to rely on the Capabilities class to hack something together.

Translate