Google Play 中针对手机和平板电脑的过滤器

发布于 2024-12-09 12:34:46 字数 183 浏览 0 评论 0原文

我想在我的 Google Play 应用程序中添加过滤器。
我只想仅向手机设备显示我的应用程序,而不是向平板电脑用户显示我的应用程序。

那么除了 之外我可以放置哪种过滤器?
是否有针对手机、平板电脑或平板电脑的特定过滤器?

I want to put filter to my application for Google Play.
I just want to display my application to phone devices only and not to tablet users.

So what kind of filter i can put except <screen-supports> ?
Is there any specific filter for phone or tablet or pads?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

沐歌 2024-12-16 12:34:46

声明应用程序仅适用于平板电脑;

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

声明应用程序仅适用于手机

<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>

有关详细信息:http://developer .android.com/guide/practices/screens-distribution.html#FilteringHandsetApps

编辑:
兼容屏幕中没有 xxhdpi 选择器,因此您可以使用;
平板电脑:

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

手机:

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

Declaring an App is Only for Tablets;

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

Declaring an App is Only for Handsets

<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>

For a detailed information : http://developer.android.com/guide/practices/screens-distribution.html#FilteringHandsetApps

Edit:
No selector for xxhdpi in compatible-screens so you can use;
Tablet:

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

Phone :

<supports-screens android:smallScreens="true"
                     android:normalScreens="true"
                     android:largeScreens="false"
                     android:xlargeScreens="false" />
风追烟花雨 2024-12-16 12:34:46

请参阅 支持多个屏幕”文章developer.android.com" rel="nofollow">Android 开发者 站点,该站点为您提供了有关要完成的配置的足够信息。阅读“配置示例”了解一些示例。

See "Supporting Multiple Screens" article from Android Developer site which which give you enough information on configuration to be done. Read "Configuration examples" for some samples.

一笑百媚生 2024-12-16 12:34:46

我遇到了同样的问题,我同意 saury 之前所说的。你肯定需要声明一个 min 和 maxsdk 以及 Targetsdk。它应该有助于编织手机。您可以尝试的另一件事是执行uses-feature telephony = true。这将编织更多一些没有电话功能的平板电脑。

还要考虑使用兼容屏幕而不是支持屏幕。支持屏幕是最小过滤器,而兼容屏幕是范围过滤器。这意味着,如果您声明supports-screenssmall false、normal、true、large false、xlarge false,市场仍会认为应用程序支持large和xlarge。兼容屏幕将允许您仅声明您的应用程序可以支持的内容。虽然不是 100% 准确,但它会缩小竞争范围。

此外,您应该查看支持的设备列表,找到规格并手动将其排除在支持之外。

编辑:您还可以通过生成示例 apk 并将其上传到门户来立即获得平板电脑的良好列表。在清单中使用支持屏幕小假、正常假、大真和xlarge true。这将为您提供属于谷歌过滤器的平板电脑设备列表。显然会有奇怪的分辨率平板电脑,但这将为您缩小列表范围。

i've come across the same problem and i agree with what saury said earlier. you definitely need to declare a min and maxsdk and also the targetsdk. it should help weave out the handsets. one other thing you can try is to do a uses-feature telephony = true. this would weave out a few more tablets that don't have telephony feature.

also look into using compatible screens rather than supports screens. support screens is a min filter where as compatible screens is a range filter. this means that if you declare supports-screens small false, normal, true, large false, xlarge false, the market will still consider large and xlarge to be supported by the application. compatible screens will allow you declare only what your application can support. though not 100% accurate it will narrow the playing field.

also, you should look through the list of supported devices find the specs and exclude them from support manually.

EDIT: you can also get a good list of tablets off the bat by generating a sample apk and upload it to the portal. in the manifest use supports-screen small false, normal false, large true, and xlarge true. that will give you a list of tablet devices that fall under google's filter. there will obviously be odd resolution tablets but this will narrow down the list for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文