Reputation: 6081
I wrote an application using the Android 2.2 SDK (API level 8). It is running well in the emulator, but now I want it to be compatible to Android 1.5+ (API level 3)or Android 1.6+ (API level 4).
The problem is that it crashes in the emulator when I try to run it on these versions.
What is a good approach to make it compatible to these versions? Is there a way to see which classes/methods cause these incompatibility issues?
Upvotes: 2
Views: 685
Reputation: 2802
You need to call the features you use not available on a 1.5 device using reflection. See this blog for the basic concept: http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html
Upvotes: 3