0

I uploaded app in play store,and in play store it says required android is 4.0 and up,and one of my friend want to install and his device has android version 4.4.2 and it shows device is not compatible following is my manifest file,still not getting what is the issue..

       <?xml version="1.0" encoding="utf-8"?>
   <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mypackagename"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="21" />
    <uses-permission android:name="android.permission.INTERNET"></uses- permission>  
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
     <uses-permission android:name="android.permission.MANAGE_DOCUMENTS"></uses-permission>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />  
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    <compatible-screens>
    <!-- all small size screens -->
    <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" />
     </compatible-screens>


<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/headings"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".MainActivity"
        android:label="@string/headings" 
        android:screenOrientation="portrait"
        >

    </activity>
    <activity android:name="FirstLoginPage"
    android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
        >
     <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
               </activity>
               </application>
           </manifest>
malis
  • 123
  • 1
  • 2
  • 11

2 Answers2

0

You can try to add screen support for large also:

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

UPDATE: Sony Xperia C3 has 5.5 screen size which comes under "large" screen category so above code will work. Add support for large screen size devices also.

Read this for more details: http://developer.android.com/guide/practices/screens_support.html#overview

Vikasdeep Singh
  • 20,983
  • 15
  • 78
  • 104
  • API levels are fine because your friends device has API level 19 (4.4.2). It is right – Vikasdeep Singh Apr 13 '15 at 04:57
  • then why he is not able to install? – malis Apr 13 '15 at 05:03
  • @malis, try above which i mentioned then hopefully it will work. May it is not working because your friend's device screen resolution is not mentioned in your app manifest.xml. Add above code and then check – Vikasdeep Singh Apr 13 '15 at 05:11
  • ok sony experia c3 also having same screen size and same version of samsung grand 2..but in sony it says device not compatible – malis Apr 13 '15 at 05:13
  • @malis, Xperia C3 has large screen size category (5.5) so add above code it will work. It does not comes under normal screen size category. – Vikasdeep Singh Apr 13 '15 at 05:24
  • Samsung grand 2 has 5.2 screen which also comes under large category. Read this: http://developer.android.com/guide/practices/screens_support.html#overview – Vikasdeep Singh Apr 13 '15 at 05:28
  • ok i will try as per your answer..but can you edit full compatible screen tag? so that i can figure out wihtout any mistakes..i vote up – malis Apr 13 '15 at 05:30
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/75082/discussion-between-malis-and-vicjordan). – malis Apr 13 '15 at 05:51
  • i tried with your answer and it says Error: String types not allowed (at 'screenDensity' with value 'xxhdpi'). – malis Apr 13 '15 at 06:36
  • @malis, sorry for late reply. I just checked that xxhdpi is not allowed at all in screenDensity. Reason i dont know. I have edited my answer. Now it will definitely work. Just add support for large screen size – Vikasdeep Singh Apr 14 '15 at 08:46
  • yes but pager is not working properly so i thought may be you can tell about that – malis Apr 14 '15 at 11:28
  • now you can add your answer here http://stackoverflow.com/questions/29627186/java-lang-indexoutofboundsexception-invalid-index-7-size-is-7 – malis Apr 14 '15 at 12:22
  • May I know the reason, why someone has down voted this answer? – Vikasdeep Singh Apr 20 '15 at 08:47
0
  <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:resizeable="true"
        android:smallScreens="true"
        android:xlargeScreens="true" 

        />

try this if you want support all screens.. This code involves tablet also . refer this to exclude tablets

Preethi Rao
  • 5,117
  • 1
  • 16
  • 29