简体   繁体   English

如何过滤Google Play,使应用仅在7英寸平板电脑上显示

[英]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.

相关问题 仅适用于手机而非平板电脑的应用程序 - app only for phones not tablets 您真的可以从使用您的应用程序中过滤掉平板电脑吗? - Can you really filter in/out tablets from using your app? 如何使JLabel仅显示文本的第一行? - How can I make it so a JLabel only displays the first line of text? 在 Play 商店发布应用程序时如何处理 .so 文件? - How to deal with the .so file while publishing the app on the Play store? 仅针对3.2+平板电脑和2.2+手机发布应用程序? - Publish app only for 3.2+ tablets and 2.2+ handsets? 如何使它仅在禁用所有按钮后才显示 Game Over 面板? - How do I make it so that it only displays the Game Over panel after all buttons are disabled? 此版本不符合Google Play 64位要求。 本机Java应用程序已经存在所有.so - This release is not compliant with the Google Play 64-bit requirement. All .so already exists for native java app 如何仅从Google Play服务库导入一个包 - How to import only one package from google play services lib 如何从Android平板电脑上的两个平板电脑上运行的应用程序 - how to operate an app running on two tablets from on tablet in android 如何在手机和平​​板电脑的应用程序中让 android 佩戴振动? - How to make android wear Vibrate in an app for phones and tablets?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM