Search code examples
androidcordova

Android - Disable screen support x large screens


Is it possible to disable support for extra large screens in the android manifest file? We have developed an app, but have yet to alter the design for tablets, so we would like to disable tablet support until a later release.

We have developed the app using phonegap/html5 - so our Java knowledge is limited.

My manifest file lists the following -

 <supports-screens
 android:largeScreens="true"
 android:normalScreens="true"
 android:smallScreens="true"
 android:resizeable="true"
 android:anyDensity="true"
 />

is there a property for extra large screens?

Cheers Paul


Solution

  • Paul, have a look at http://developer.android.com/guide/topics/manifest/supports-screens-element.html

    The code to disable extra large screens is

    <supports-screens
     android:xlargeScreens="false"
     />
    

    From what I'm seeing, this still allows you to run the app on a tablet device from Eclipse but should disable it at publish time.