Android application only for 10" tablets not latest phones

馋奶兔 提交于 2019-12-13 20:29:32

问题


How can I limit my app to be only for tablets? E.g. 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?


回答1:


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.



来源:https://stackoverflow.com/questions/14851986/android-application-only-for-10-tablets-not-latest-phones

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!