简体   繁体   中英

Android application only for 10" tablets not latest phones

How can I limit my app to be only for tablets? Eg how to support Galaxy Tab but not Galaxy SIII ? Both have the same resolution and density.

Will this code be sufficient:

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

After reading docs again, is having below section:

<compatible-screens>
    <screen android:screenSize="xlarge" android:screenDensity="mdpi" />
    <screen android:screenSize="xlarge" android:screenDensity="hdpi" />
    <screen android:screenSize="xlarge" android:screenDensity="xhdpi" />        
</compatible-screens>

makes the whole setup a correct one?

First of all make above provisions in manifest

Go to Console (Developer's console)

https://play.google.com/apps/publish/
  • Select your app from App listing.
  • Go to APK Tab (left side in a page)

You will be able to see 'See supported devices' hyperlink Open it,

You can see list of supported devices there. Manually exclude devices which you do not want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM