Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Devices with screen density 440 dpi are not compatible with app being published on Google Play

After adding <compatible-screens> block to AndroidManifest.xml some devices become incompatible. For example Pixel 3 and Pixel 3a. Both have a density screen 440 DPI. However all other devices from Google are compatible. The thing is I need to support limited set of devices (the UI is not suitable for tablets or devices with low resolutions).

My idea was these devices might belong to

<screen android:screenSize="normal" android:screenDensity="420" />
<screen android:screenSize="normal" android:screenDensity="480" />

or

<screen android:screenSize="large" android:screenDensity="420" />
<screen android:screenSize="large" android:screenDensity="480" />

buckets.

Setting android:screenDensity="440" is not working. Google Play prohibits uploading apk with such screen density.

Here is a mentioned above complete block of code

<compatible-screens>
    <screen android:screenSize="normal" android:screenDensity="xhdpi" />
    <screen android:screenSize="normal" android:screenDensity="xxhdpi" />
    <screen android:screenSize="normal" android:screenDensity="xxxhdpi" />
    <screen android:screenSize="normal" android:screenDensity="420" />
    <screen android:screenSize="normal" android:screenDensity="480" />
    <screen android:screenSize="normal" android:screenDensity="560" />
    <screen android:screenSize="normal" android:screenDensity="640" />

    <screen android:screenSize="large" android:screenDensity="xhdpi" />
    <screen android:screenSize="large" android:screenDensity="xxhdpi" />
    <screen android:screenSize="large" android:screenDensity="xxxhdpi" />
    <screen android:screenSize="large" android:screenDensity="420" />
    <screen android:screenSize="large" android:screenDensity="480" />
    <screen android:screenSize="large" android:screenDensity="560" />
    <screen android:screenSize="large" android:screenDensity="640" />
</compatible-screens>

I was trying to upload apk files with different combinations of screenSize and screenDensity and check if those devices become compatible. I have not found it yet.

like image 248
Ievgen Avatar asked Sep 09 '19 11:09

Ievgen


1 Answers

Add below code in AndroidManifest.xml above application tag

<supports-screens
    android:anyDensity="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:resizeable="true"
    android:smallScreens="true"
    android:xlargeScreens="true" />
like image 128
Rahul Khurana Avatar answered Oct 11 '22 06:10

Rahul Khurana