• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to convert Android App to Samsung Galaxy S2

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an apps built in Android 2.2. I need to port it for Samsung Galaxy S2. and its version is Android 2.3. Changing the version is done. But how can i fix up the screen resolution issues. Previously i developed for 240x320. Now it is 480 x 800. My question is from which folder the layout xml is readed. Samsung Galaxy S2 is small or normal or large or xlarge screen. Please answer me guys. Thanks in advance.


Thanks & Regards
Gokul.K
 
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You shouldn't have to change the version. Later Android versions are supported automatically. If you set to manifest attributes to reflect Android 2.3, then the app will no longer run on 2.2 (which is still used by a large percentage of Android devices).

You should read http://developer.android.com/guide/practices/screens_support.html about how to develop for multiple screen sizes. http://developer.android.com/guide/practices/tablets-and-handsets.html (and all the other pages in the "Best Practices" section) should also be of interest.
 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For both older and newer version layout will be read from layout-normal folder. And to support 480 x 800 resolution which is high resolution, you need to put newly designed images in drawable-hdpi folder. Images should be in better resolution then previous images.
reply
    Bookmark Topic Watch Topic
  • New Topic