Reputation: 226
I am using a Samsung Tab A (SM-T550) tablet running Android 5.0.2. I am able to side-load the APK for my app successfully, but I'm not able to find the app in the Google Play Store. When I go to the Google Play Store link directly, Google Play claims that the app isn't compatible with my device.
Here what I added in the manifest:
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true"/>
<compatible-screens>
<screen android:screenSize="large" android:screenDensity="480" />
<screen android:screenSize="xlarge" android:screenDensity="480" />
<screen android:screenSize="small" android:screenDensity="ldpi" />
<screen android:screenSize="small" android:screenDensity="mdpi" />
<screen android:screenSize="small" android:screenDensity="hdpi" />
<screen android:screenSize="small" android:screenDensity="xhdpi"/>
<!--all normal size screens -->
<screen android:screenSize="normal" android:screenDensity="ldpi" />
<screen android:screenSize="normal" android:screenDensity="mdpi" />
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />
<!-- all large size screens -->
<screen android:screenSize="large" android:screenDensity="ldpi" />
<screen android:screenSize="large" android:screenDensity="mdpi" />
<screen android:screenSize="large" android:screenDensity="hdpi" />
<screen android:screenSize="large" android:screenDensity="xhdpi" />
<!-- all xlarge size screens -->
<screen android:screenSize="xlarge" android:screenDensity="ldpi" />
<screen android:screenSize="xlarge" android:screenDensity="mdpi" />
<screen android:screenSize="xlarge" android:screenDensity="hdpi" />
<screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
<!-- Special case for Nexus 7 -->
<screen android:screenSize="large" android:screenDensity="213" />
</compatible-screens>
Build.gradle:
minSdkVersion 16
targetSdkVersion 23
Permissions in the manifest file:
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-feature android:name="android.hardware.camera" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.CALL_PHONE"/>
But same thing, my tablet not compatible.
When I install the APK directly, working perfectly.
Upvotes: 3
Views: 2354
Reputation: 12181
The problem is with this line in the manifest:
<uses-permission android:name="android.permission.CALL_PHONE"/>
According to the answers to this question, this can cause the app to be unavailable on the marketplace for tablets (since tablets can't be called). They recommend adding the following line to your manifest:
<uses-feature android:name="android.hardware.telephony" android:required="false" />
Upvotes: 3
Reputation: 3111
Some Tablets need to add one more line of code,
<uses-feature android:name="android.hardware.telephony" android:required="false" />
This was mainly for tablets with no sim cards, But I searched for the tablet you are using and it already has a sim card, More Info will be written in case I found the reason.
Upvotes: 3
Reputation: 3830
create layout folder name with layout-sw320dp
, layout-360dp
,layout-sw480dp
, layout-sw600dp
& layout-sw800dp
.
Create All Layout which you need to show in Tablet Devices, make as per Tab size & put into appropriate Layout Folder.
No Need to Add <supports-screens>
& <compatible-screens>
code in Manifest.xml
Upvotes: -1