VKS*_*ngh 6 android tablet google-play
我想我的应用程序只运行移动设备而不是
平板电脑10和7英寸
.但我的应用程序是在两个平板电脑大小运行.请帮助我
是的,因为@OceanLife说你应该使用兼容屏幕或支持屏幕.
但我想在这里添加一些东西.
如果你正在使用
<supports-screens android:largeScreens="false" android:normalScreens="true"
android:smallScreens="true" android:xlargeScreens="false" />
Run Code Online (Sandbox Code Playgroud)
然后注意官方兼容屏幕文档说:
如果您希望您的应用程序仅适用于大型和超大屏幕设备,则该元素允许您声明您的应用程序不支持小尺寸和普通屏幕尺寸.外部服务(例如Google Play)会相应地过滤您的 应用程序.您还可以使用该 元素声明系统是否应 针对不同的屏幕大小调整应用程序的大小.
因此,在将apk文件上传到PlayStore后它会生效.直到你不会受到这个功能的影响.
另请参阅Google Play上的过滤器文档,详细了解Google Play如何使用此清单元素和其他清单元素过滤应用程序.
希望它会有所帮助.
小智 9
谷歌开发人员有非常详细的信息,请查看此链接:
分发到特定屏幕
引用下面的相关部分.
仅限手机:
声明应用程序仅适用于手机
Run Code Online (Sandbox Code Playgroud)<manifest ... > <compatible-screens> <!-- all small size screens --> <screen android:screenSize="small" android:screenDensity="ldpi" /> <screen android:screenSize="small" android:screenDensity="mdpi" /> <screen android:screenSize="small" android:screenDensity="hdpi" /> <screen android:screenSize="small" android:screenDensity="xhdpi" /> <!-- all normal size screens --> <screen android:screenSize="normal" android:screenDensity="ldpi" /> <screen android:screenSize="normal" android:screenDensity="mdpi" /> <screen android:screenSize="normal" android:screenDensity="hdpi" /> <screen android:screenSize="normal" android:screenDensity="xhdpi" /> </compatible-screens> ... <application ... > ... <application> </manifest>
平板电脑:
声明应用程序仅适用于平板电脑
如果您不希望您的应用程序在手机上使用(也许您的应用程序仅在大屏幕上才有意义),或者您需要时间针对较小的屏幕进行优化,则可以防止小屏幕设备通过使用来下载您的应用程序清单元素.
Run Code Online (Sandbox Code Playgroud)<manifest ... > <supports-screens android:smallScreens="false" android:normalScreens="false" android:largeScreens="true" android:xlargeScreens="true" android:requiresSmallestWidthDp="600" /> ... <application ... > ... </application> </manifest>
归档时间: |
|
查看次数: |
5150 次 |
最近记录: |