[英]how to run android app only on phone ,not on tab
我已經開發了一個僅可在手機上運行的android應用程序,但也可以在Tab上運行。我對清單文件進行了如下更改:
<supports-screens
android:anyDensity="true"
android:largeScreens="false"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="false" />
但這是行不通的。 使用僅在手機而非android選項卡上運行的代碼設置android應用的方法是什么?
只需在Manifest.xml中添加以下行:
<uses-feature android:name="android.hardware.telephony"/>
如果設備沒有撥號器和數據網絡,則該設備將從GooglePlayStore中排除。
檢查一下: Google Play過濾
另一方面,如果更改了supports-screens屬性,則具有高密度顯示器的設備將出現問題。
祝好運!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.