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?
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.
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.
See here for details: http://developer.android.com/guide/topics/manifest/supports-screens-element.html
精彩评论