dezull
dezull

Reputation: 1010

Restricting Android Application to Certain Screens

I'm developing a Live Wallpaper that requires the screen to be of certain features.

The Live Wallpaper should support API level 7 and above (Thought I'm not sure it'll work on Honeycomb) and Normal screen size with Medium density which are restricted to HVGA(320x480), WVGA800(480x800), WVGA854(480x854)

I am able to restrict it to Normal screen size using support-screens in the AndroidManifest.xml:

<support-screens 
        android:smallScreens="false"
        android:normalScreens="true"
        android:largeScreens="false" />

However, I have no idea how to restrict it to Medium density screen.

What is the best way to achieve this? as I don't want the wallpaper to appear in the Market for devices that could not run it.

Thanks

Upvotes: 5

Views: 1771

Answers (1)

John Flatness
John Flatness

Reputation: 33749

You can specify <compatible-screens> in the manifest file, and the Market will not display your application for screens which are different from the ones you've listed as compatible.

<compatible-screens>
    <screen android:screenSize="normal" android:screenDensity="mdpi" />
</compatible-screens>

Upvotes: 7

Related Questions