Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restricting Android Application to Certain Screens

Tags:

android

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

like image 782
dezull Avatar asked Apr 01 '11 03:04

dezull


People also ask

How do I restrict apps on Android?

Open your phone's Settings app. Tap Digital Wellbeing & parental controls. Tap the chart. Next to the app you want to limit, tap Set timer .

How do I only allow certain apps on Android?

To configure an app limit, launch Digital Wellbeing. Tap Dashboard, then select the app you'd like to place a restriction on. Touch the App Timer option and define your daily allowance. Finally, hit the OK button.


1 Answers

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>
like image 185
John Flatness Avatar answered Oct 06 '22 00:10

John Flatness