Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 276
Dancer Avatar asked Jan 26 '12 11:01

Dancer


People also ask

How can I make Android apps compatible with all screen sizes?

The best way to create a responsive layout is to use ConstraintLayout as the base layout in your UI. ConstraintLayout enables you to specify the position and size of each view according to spatial relationships with other views in the layout. All the views can then move and resize together as the screen size changes.


2 Answers

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.

like image 151
alexismorin Avatar answered Oct 12 '22 12:10

alexismorin


Take a look at the compatible-screens element in the Manifest, it lets you customize, what kind of screens does your application support. Hope this helps.

like image 28
Egor Avatar answered Oct 12 '22 14:10

Egor