Search code examples
androidandroid-manifestgoogle-playandroid-market-filtering

Specifying Android Market RAM in the Manifest


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.


Solution

  • 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>
    

    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" />
    

    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.

    You are welcome to give your feedback!