Search code examples
androidcompatibilityandroid-2.2-froyo

Will coding done in android 2.2 work in 4.1 Jellybean Phones?


I have wrote an application using android 2.2 in eclipse.

My app is working fine on the samsung galaxy mini android 2.2. However, it is not working on samsung galaxy s3 android 4.1.

My app is only taking up half of the screen on the samsung galaxy s3.

  1. Why is my app not working on higher resolution devices?
  2. How can i make the app compatible with other devices running different versions of android?

Solution

  • Sounds like it's most likely you just have a LinearLayout at the top of your layout XML and it just takes up less space on the S3.

    I would advise taking a look at the two links below; if you want a specific starting point, you could adjust your layout to match_parent and use the l/m/h/xhdpi folders to place different size graphics in. Also worth checking whether you are using dp or dip (density independent pixels)

    http://developer.android.com/training/multiscreen/index.html

    http://android-developers.blogspot.co.uk/2012/11/designing-for-tablets-were-here-to-help.html