我想上传一个应用程序,它应该只适用于智能手机(应用程序需要启动调用的功能,所以我想排除平板电脑......)
我读谷歌Supporting Multiple Screens和 compatible-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/