[英]Support mobile phones, phablets but not tablets
我希望我的應用程序僅支持手機和平板手機,而不支持平板電腦。 我在清單文件中使用了以下編碼來支持手機和平板手機。
<compatible-screens>
<!-- all small size screens -->
<screen
android:screenDensity="ldpi"
android:screenSize="small" />
<screen
android:screenDensity="mdpi"
android:screenSize="small" />
<screen
android:screenDensity="hdpi"
android:screenSize="small" />
<screen
android:screenDensity="xhdpi"
android:screenSize="small" />
<!-- all normal size screens -->
<screen
android:screenDensity="ldpi"
android:screenSize="normal" />
<screen
android:screenDensity="mdpi"
android:screenSize="normal" />
<screen
android:screenDensity="hdpi"
android:screenSize="normal" />
<screen
android:screenDensity="xhdpi"
android:screenSize="normal" />
</compatible-screens>
我不確定上面的代碼是否支持平板手機。 這個對嗎 ?
編輯
基本上我只想支持支持SIM卡的設備。 還有其他找出方法嗎?
您可以在清單中指定僅希望支持具有電話功能的設備。 正如在評論中提到的那樣,消除所有葯片不是萬無一失的技術。
<uses-feature android:name="android.hardware.telephony" android:required="true" />
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.