[英]How to filter Google Play so app only displays to 7in tablets
I recently released an app that only supports 7-8.9inch screens (600dp width). 我最近发布了一个仅支持7-8.9英寸屏幕(宽度为600dp)的应用。 I thought I had applied the correct tag within the manifest to tell Google play to filter out other devices. 我以为自己在清单中应用了正确的标签,以告诉Google Play过滤掉其他设备。
In the AndroidManifest.xml I used: 在AndroidManifest.xml中,我使用了:
supports-screens android:requiresSmallestWidthDp="600" android:largestWidthLimitDp="600" 支持屏幕android:requiresSmallestWidthDp =“ 600” android:largestWidthLimitDp =“ 600”
however it turns out google play doesn't filter with the tag "requiresSmallestWidthDp" http://developer.android.com/guide/topics/manifest/supports-screens-element.html 但是事实证明,Google Play没有使用标签“ requiresSmallestWidthDp”进行过滤http://developer.android.com/guide/topics/manifest/supports-screens-element.html
(despite using it here http://developer.android.com/guide/practices/screens-distribution.html ) (尽管在这里http://developer.android.com/guide/practices/screens-distribution.html使用它)
How can I filter the app so that the play store will only display the app to compatible (7 - 8.9 in devices. Or only 7in devices as a worst case) devices? 如何过滤应用程序,以便Play商店仅将应用程序显示为兼容(7-8.9英寸的设备,或者在最坏的情况下仅为7英寸的设备)?
I looked into using compatible-screens but came to the conslusion these are too broad and that a 7in and 10in device would come under the same bracket of large screenSize, which would be useless for me. 我研究过使用兼容的屏幕,但得出的结论是这些屏幕太宽了,因此7英寸和10英寸设备将放在大屏幕尺寸的同一支架下,这对我来说毫无用处。
Thank you in advance 先感谢您
The following manifest should do the trick: 以下清单应该可以解决问题:
<compatible-screens>
<screen android:screenSize="large" android:screenDensity="mdpi" /> <!-- may not need this one-->
<screen android:screenSize="large" android:screenDensity="hdpi" />
<screen android:screenSize="large" android:screenDensity="xhdpi" />
</compatible-screens>
It seems that the requiresSmallestWidthDp
will be supported in the future for filtering apps on Google Play but not currently: 看来, requiresSmallestWidthDp
将在未来对谷歌过滤Play的应用程式,但目前尚未得到支持:
Caution: The Android system does not pay attention to this attribute, so it does not affect how your application behaves at runtime. 警告:Android系统不关注此属性,因此它不会影响您的应用程序在运行时的行为。 Instead, it is used to enable filtering for your application on services such as Google Play. 相反,它用于对应用程序(例如Google Play)上的应用程序进行过滤。 However, Google Play currently does not support this attribute for filtering (on Android 3.2), so you should continue using the other size attributes if your application does not support small screens. 但是,Google Play当前不支持此属性进行过滤(在Android 3.2上),因此,如果您的应用程序不支持小屏幕,则应继续使用其他大小属性。
http://developer.android.com/guide/topics/manifest/supports-screens-element.html http://developer.android.com/guide/topics/manifest/supports-screens-element.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.