Why xxhdpi and xxxhdpi invalid values ββfor the screenDensity parameter <screen> in the manifest?
I am trying to limit the use of my application on tablets using the recommended solution from the official website of Android developers. Application announcement is available only for phones . I want to mark only small and regular screen sizes (with any density) as compatible:
<compatible-screens> <screen android:screenDensity="ldpi" android:screenSize="small" /> <screen android:screenDensity="mdpi" android:screenSize="small" /> <screen android:screenDensity="hdpi" android:screenSize="small" /> <screen android:screenDensity="xhdpi" android:screenSize="small" /> <screen android:screenDensity="ldpi" android:screenSize="normal" /> <screen android:screenDensity="mdpi" android:screenSize="normal" /> <screen android:screenDensity="hdpi" android:screenSize="normal" /> <screen android:screenDensity="xhdpi" android:screenSize="normal" /> </compatible-screens>
However adding
<screen android:screenDensity="xxhdpi" android:screenSize="normal" />
is not allowed. Cannot compile with Error: String types not allowed (at 'screenDensity' with value 'xxhdpi'). The same thing happens for "xxxhdpi".
I found that inserting an integer for the appropriate density (for example, screenDensity="480" ) works, but I wonder why it doesn't allow string expressions to be used for all existing density codes?
source share