Android – Enable small screen resolution of your Android Application

For all Android mobiles, there exists 3 screen sizes:

  • Small: devices with a screen size smaller than the T-Mobile G1 or Samsung I7500, for example the recently announced HTC Tattoo.
  • Normal: devices with a screen size roughly the same as the G1 or I7500.
  • Large: devices with a screen size larger than the G1 or I7500 (such as a tablet-style device.)


After the WatchFootballApp v1.1 was published, my HTC tattoo cannot search it in Android Market and i have to install it by running the .apk in my phone directly. The reason is you have to enable the small screen support in the AndroidManifest.xml before publishing your application and it is only applicable to Android SDK 1.6. Otherwise, your application can only be searched in those Android Market of Normal and Large screen phones.

So in order to enable the small screen resolution, you have to upgrade the Android SDK to 1.6 and add the following code in the AndroidManifest.xml.

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

By the way, the WatchFootballApp v1.1.3 (記得睇波 v1.1.3) has been published with better performance and small screen support. Now, you can download it thought the Android Market even you are using small screen Android phone.

Done =)

Reference: Support for additional screen resolutions and densities in Android

About these ads

9 thoughts on “Android – Enable small screen resolution of your Android Application

  1. rajesh

    Hi,

    I am trying to use Resource Qualifier for layout as layout-large. But when the application is starting in the emulator its reading the same file from default layout folder. The res folder structure is as below :

    res/
    layout/login.xml
    layout-large/login.xml

    What I want is when there is large screen the layout-large/login.xml file should be read but its not.

    What is wrong over here?

    Any help would be appreciated?

    Thanks & Regards
    C.RAjesh

    Reply
    1. ykyuen Post author

      I guess the following url may help
      Handling Multiple Screen Sizes, Part Three
       
      Size-Based Sets

      Similarly, if you wish to have different resource sets based upon screen size, Android offers -small, -normal, and -large resource set labels. Creating res/layout-large-land/ would indicate layouts to use on large screens (e.g., WVGA) in landscape orientation.

      Reply
  2. kumar

    Hi ykyuen.
    I need help, I want to highlight the path where it can possibly move , when I click the coin(like checker game coins and chessgame coins )and thanks for this tutorial…….

    Reply
  3. rajasekhar v

    Hi,

    I am trying to use Resource Qualifier for layout as layout-large,layout-normal,layout-small..using ninepatch images. But when the application is starting in the emulator is working all sceens. but images not looking properly i want to images clarity in all screens. layout-large is fine the problem is layout-small screens The res folder structure is as below :

    res/
    layout-large
    layout-small
    layout-normal

    What I want is when there is large screen the layout-small/ in all xml file should be read but its not.

    What is wrong over here?

    Any help would be appreciated?

    Thanks & Regards
    v.rajasekhar
    Reply ↓

    Reply
  4. rajasekhar v

    Hi all,
    I am trying to pagenation is not working ..how to get pagenation in android please give any help would be appreciated?

    Thanks & Regards
    v.rajasekhar
    Reply ↓

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s