Filter the device screen size on the Android Market

和自甴很熟 提交于 2020-01-03 04:21:47

问题


I want my app available on 7 inches tablets and bigger, the following code exclude lot of tablets like the Galaxy tab 7, HTC Flyer, etc.

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

and if i set android:normalScreens to true, all the phones (and of course the 7 inch tablets) can see the app.

Is there a way to do what I need?


回答1:


You can directly filter devices in publisher console. Just allow any device in manifest file and filter in market. It's not the best way, but if you want such specific filter - you can use it.




回答2:


You can combine the screensize with the screen density, see android:requiresSmallestWidthDp on: http://developer.android.com/guide/topics/manifest/supports-screens-element.html



来源:https://stackoverflow.com/questions/8577620/filter-the-device-screen-size-on-the-android-market

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