1

I'm developing an android app.for that i'm using device of size 1024*600. I want to make my app device independent.its should run on small device as well as lager device than current.how to make this?i made changes in manifest file.but doesn't work.

 <supports-screens android:largeScreens="true"
                  android:smallScreens="true"
                  android:anyDensity="true"
                  android:normalScreens="true"
                  android:resizeable="true"
                  />
Shail Adi
  • 1,502
  • 4
  • 14
  • 35
yuva ツ
  • 3,707
  • 9
  • 50
  • 78

4 Answers4

1

You need to read android document well. For supporting your app to multiple screens and device refere this Supporting Multiple Screens

ilango j
  • 5,967
  • 2
  • 28
  • 25
1

This page explains everything related to UI development. There are number of things to do, providing different XMLs, use of density independent pixels, etc. Read this page carefully, you will understand what can be done.

Alpay
  • 1,350
  • 2
  • 24
  • 56
0

I would suggest combination of things

  • Use dp instead of px
  • Use Relative Layout as more as you can
  • Create different layout for different density and resolution device like Supporting Different Screens. This link is already mention in above two answer also
  • Necessary to cover maximum phone my setting minimum and maximum sdk <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" />

And finally to understand better see how to create different layout for different screen size

Tofeeq Ahmad
  • 11,935
  • 4
  • 61
  • 87
0

Hi Yuva you can create different layouts for screen sizes such as

layout-large, layout-small, layout-xlarge ,

So u can manage the screen sizes by creating different layout folders. And then copy your layout XML files to different size layouts. Now it supports to all types of screen sizes .

androidgeek
  • 3,440
  • 1
  • 15
  • 27
  • but how can i use these layouts layout-large, layout-small, layout-xlarge while loading activity – yuva ツ Mar 04 '13 at 08:56
  • No need to manage Activities just create the layouts as i mentioned above and check it in Palette window you can see the difference in sizes based on that u can manage the Screen sizes for your app and it supports all the screens ....... – androidgeek Mar 04 '13 at 09:02