指定Android Market的RAM的清单 [英] Specifying Android Market RAM in the Manifest
问题描述
有些人继续下载和手机,拥有100MB的RAM,给我们一个不好的评价我们的安装高清游戏...:)
some people continue to download and install our HD game on phones that have 100MB of RAM and give us a bad rating... :)
有没有办法来限制应用程序下载到智能手机只能使用大的内存,或者限制新车型/处理器。
Is there a way to limit app download to only smartphones with much ram, or maybe to limit to new models/CPUs.
推荐答案
我的最终解决方案来从拉哈夫苏德尖端以下.. 经过一个小小的研究我发现,限制了屏幕娄将限制为512MB的RAM +设备。这不是100%安全,但它是我发现那里最好的解决办法:)
My final solution came from following the tip from Raghav Sood.. After a little research I found out that limiting to screens bellow will limit to devices with 512Mb+ of RAM. It's not 100% secure but it's best solution I found out there :)
就在清单文件中添加这些过滤器。
Just add those filters in manifest file..
<compatible-screens>
<!-- some normal size screens -->
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />
<!-- all large size screens -->
<screen android:screenSize="large" android:screenDensity="ldpi" />
<screen android:screenSize="large" android:screenDensity="mdpi" />
<screen android:screenSize="large" android:screenDensity="hdpi" />
<screen android:screenSize="large" android:screenDensity="xhdpi" />
<!-- all xlarge size screens -->
<screen android:screenSize="xlarge" android:screenDensity="ldpi" />
<screen android:screenSize="xlarge" android:screenDensity="mdpi" />
<screen android:screenSize="xlarge" android:screenDensity="hdpi" />
<screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
</compatible-screens>
请注意,一些新的手机有更高的密度,然后xhdpi所以他们将被挡在外面!我尝试用新的过滤器:
Please be aware that some new phones have higher density then xhdpi so they will be blocked out! I'm experimenting with the new filter:
<supports-screens
android:resizeable="true"
android:smallScreens="false"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true" />
到目前为止,一切正常。我发现我的支持列表中低端设备,但没有人抱怨,到目前为止,(用于设备相关的错误,在85K下载)。
So far, everything is OK. I found out that I have low-end devices on the supported list but no one complained so far, (for device related bug, in 85k downloads).
我会建议第二的解决方案,但请谨慎使用! 我一定会用它在我即将到来的比赛。
I would recommend a 2nd solution, but please use it with caution! I will definitely use it in my upcoming games.
欢迎您给您的反馈!
这篇关于指定Android Market的RAM的清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!