Skip to main content
Legend
February 26, 2013
Answered

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

  • February 26, 2013
  • 4 replies
  • 1788 views

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 has been closed for replies.

4 replies

Inspiring
March 2, 2013

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).

Colin Holgate
Colin HolgateCorrect answer
Inspiring
February 26, 2013
Legend
February 26, 2013

That's brilliant.

Thank-you,

G

Inspiring
February 26, 2013

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.