App not compatible with tablet

2020-01-29 07:27发布

问题:

I've build an Android app...for phones...but I wouldn't mind to broaden my audience and let Tablet owners download it as well.... To be honest. it doesn't look very neat on a tablet...but I don't really mind that. I'll at least give them the option.

unfortunately I cant find the app on the Google Play Store / Android Market with my tablet! when I launch the url directly in the browser, I am being redirected to the Play store, but it says "this app is not compatible with your device"

I didn't specify anything in my Manifest like "android:xlargeScreens" (the default should be true, right? I also didn't specify any device restrictions in the Store Publish page

Unfortunately I only have one tablet to test it with...so I don't know if it's the tablets fault, my apps fault or the Play Store's fault....

I have an HP Touchpad (CM9)....it's rather experimental device - but other phone apps works without a problem on that device

while developing, I also used my tablet as a test device, and the app launched on it. so I don't really know why the Play Store is forbidding me to download the app....

are there any special requirement that my Manifest or my XML-layouts have to match, for the Play Store to open it for tablet users as well?

回答1:

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"



回答2:

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" />


回答3:

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!



回答4:

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