3

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.

Jis Maxi
  • 226
  • 1
  • 4
  • 16

3 Answers3

3

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" />
Community
  • 1
  • 1
3

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.

Omar HossamEldin
  • 3,033
  • 1
  • 25
  • 51
  • Thank you, this solved the problem. My Tablet do not have a SIM CARD, purhapse some other model, but this one not. – Jis Maxi Mar 06 '17 at 18:26
  • Isn't this your model , http://www.gsmarena.com/samsung_galaxy_tab_a_9_7-7122.php, It says here it has micro sim card – Omar HossamEldin Mar 06 '17 at 18:28
  • Me is SM-T550 :) is this one: http://www.samsung.com/levant/smartphones/galaxy-tab-a-9-7-t550/SM-T550NZWAMID/ – Jis Maxi Mar 06 '17 at 18:34
-1

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

Narendra Sorathiya
  • 3,770
  • 2
  • 34
  • 37