App not compatible with tablet

笑着哭i 提交于 2019-11-27 14:07:36

The tablet may not support some of the features that your app requires. You can make them "not required" for the app (that means that you should check if they are actually available before using them in the code).

It is done like that:

<!-- features -->
<uses-feature android:name="android.hardware.telephony"  android:required="false" />

Other possible features are:

android.hardware.camera

android.hardware.camera.autofocus

android.hardware.location.gps

android.hardware.location

android.hardware.location.network

For full list of relations between features<->permissions, you can see:

http://developer.android.com/guide/topics/manifest/uses-feature-element.html

See "Feature reference"

write below code into your android manifest.xml file for make application tablet compatible.

<supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true" />

I solved my own problem:

I did 2 things:

1 - I disabled 'touchscreen'

<uses-feature android:name="android.hardware.touchscreen"  android:required="false" />

this disables ADVANCE touchscreen controls (like flicking etc.)

but I think the thing that did it was the following:

2 - I disabled the Copy Protection in the Play Store Publish page a few hours later I could find my app on my tablet and install it!

Android documentation clearly mentioned that if your app supporting v3.1+ then you should have tag in AndroidManifest.xml

http://developer.android.com/guide/practices/screen-compat-mode.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!