我有一个只能在手机中运行的应用程序。
仅针对平板电脑,我将其设置为
<supports-screens
android:largeScreens="true"
android:normalScreens="false"
android:requiresSmallestWidthDp="600"
android:smallScreens="false"
android:xlargeScreens="true" />
但是,我该如何仅对电话设备执行相同操作?
我读了一下,<compatible-screens>
但对我没有帮助(例如与某些手机不兼容的应用程序(例如HTC One,三星Galaxy s3,s4等))
你能告诉我一个最好的解决方案吗?
添加<uses-feature android:name="android.hardware.telephony" android:required="true">
到您的AndroidManifest.xml
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句