I’m developing an Android app and have been looking around a bit on how to support older versions(I’ve been developing for 4.0 while 10% of the phones are on 2.2 and 50% on 2.3). I’ve found the support library and wanted to see if I understood things correctly.
- I get the support library for version 2.2.
- I switch from using the stuff from the normal .jar to the one from
the support library. Seems to be a bit of code changes and new imports. - My app is now working on Android 2.2
Steps 1 and 2 are fine. Depending on your starting point, you may have intervening steps before Step 3, such as adjusting
android:minSdkVersionto support API Level 8 (Android 2.2). And, depending on what else you may want to use (e.g., ActionBarSherlock for a consistent action bar pattern), you may have more steps to add.