Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to explicitly say that the application doesn't support LDPI devices

Tags:

android

How can I make it so that my application is seen on the Android Market only by devices with mdpi and hdpi densities.

There is the <supports-screens> tag and there is the anyDensity parameter but I don't see how I can say what I want. If I set anyDensity to false, what does that mean? Where do I specify which densities I do support?

like image 973
Catalin Morosan Avatar asked Aug 31 '10 17:08

Catalin Morosan


2 Answers

Look at the <compatible-screens> tag in <manifest>. It allows to enumerate supported sizes and dpis:

..
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />
..

All other combinations will be disabled.

like image 143
underwood Avatar answered Sep 18 '22 13:09

underwood


The small screens represent LVGA. If you declare android:smallScreens="false" in your manifest it indicates that your application will not support LVGA.

If you are compiling your application with minimumsdk/targetsdk of 1.5 SDK then by default these values will be false in the else case these values will be true. So in this case you need to specify that your application will not support LVGA by declaring smallscreens attribute as false.

like image 22
DeRagan Avatar answered Sep 18 '22 13:09

DeRagan