Android:什么是仅针对 Play 商店中的智能手机的正确 list 声明

标签 android google-play android-manifest

我想上传一个应用程序,它应该只适用于智能手机(应用程序需要启动调用的功能,所以我想排除平板电脑......)

我读谷歌Supporting Multiple Screenscompatible-screens .我找到了 supported-screens ,但 android:largestWidthLimitDp 属性在“API13”中可用,我从“API10”开始。

有较新的设备(Xperia Z、Galaxy S4 和 HTC One)使用 drawable-xxhdpi 图形,屏幕分辨率类似于平板电脑。

问题:此 list 声明仅适用于智能手机(包括新智能手机)吗?

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

    <!-- all large size screens -->
    <screen android:screenSize="large" android:screenDensity="ldpi" />
    <screen android:screenSize="large" android:screenDensity="mdpi" />
    <screen android:screenSize="large" android:screenDensity="hdpi" />
    <screen android:screenSize="large" android:screenDensity="xhdpi" />

    <!-- support for Xperia Z, Galaxy S4 and HTC One -->
    <screen android:screenDensity="480" android:screenSize="normal" /> 
    <screen android:screenDensity="480" android:screenSize="large" /> 
</compatible-screens>

最佳答案

如果您的应用需要启动电话的功能。为什么不过滤电话功能?

<uses-feature android:name="android.hardware.telephony" android:required="true" />

关于Android:什么是仅针对 Play 商店中的智能手机的正确 list 声明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19566958/

相关文章:

Android launchMode singleTask

android - 我如何要求用户对应用进行评分并在 Facebook 上分享

安卓工作室 : Cannot resolve symbol "Truth" (Truth library)

android - 在特定时间推送通知

java - 如何在谷歌地图上绘制所有路线

android apk 非市场安装更新通知

android - google play 上 android 应用程序的描述,语言不同于英语

android - 在 Android 中动态更改应用程序图标文本

android - 用户卸载 Android 应用程序时的通知

database - Android项目中如何组织数据库访问代码?