开发者

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

开发者 https://www.devze.com 2023-01-13 17:42 出处:网络
How can I make it so that my application is seen on the Android Market only by devices with mdpi and hdpi densities.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号