Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any way to support samsung galaxy s4 using compatible screen sizes

Tags:

android

I've recently released an app but the ui really isn't ready for larger tablet screen so until I get this fixed I've filtered out certain devices with an xlarge screen size using compatible screen tags:

<compatible-screens>
    <screen
        android:screenDensity="ldpi"
        android:screenSize="small" />
    /* All sizes up to large xhdpi */
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="large" />
</compatible-screens>

Unfortunately, declaring compatible screen sizes like this in the manifest excludes the S4. I can't find a way of specifying compatible screens and not excluding the S4.

Note, a very similar question has been asked here but the accepted answer (which indicates that at 441dpi the S4 falls under the xxhdpi screen density bucket) does not help in this particular situation as xxhdpi is not a valid manifest attribute value for screen density.

EDIT:

Many thanks for CommonsWare's answer below. The correct bucket for the S4 is then:

<screen
    android:screenDensity="480"
    android:screenSize="normal" /> 
like image 846
user1173706 Avatar asked May 11 '13 18:05

user1173706


People also ask

How big is the Samsung s4 screen?

The S4's 5-inch (130 mm) Super AMOLED display with 1080×1920 pixels (1080p Full HD) is larger than the 4.8-inch (120 mm) 720×1280 display of its predecessor, and also features a PenTile RGBG matrix. The pixel density has increased from 306 to 441 ppi, surfaced with Corning Gorilla Glass 3.


1 Answers

Use 480 instead of xxhdpi in the <screen> element.

like image 122
CommonsWare Avatar answered Sep 16 '22 13:09

CommonsWare