how can I test backwards compatibility in android emulator?
I have a testapp with SDK 15. Now if I switch the compiler version to SDK 7 (for running it on Android2.1 emulation), Eclipse complains about all used imports contained only >SDK7. Of course.
But in my code I care about the critical code by if(Build.VERSION.SDK_INT > 11)…, so this should not be a problem when running on older devices.
Anyhow, of course eclipse still keeps complaining.
So, how can I make these backwards testing?
In AndroidManifest.xml file, change the Min sdk version attribute to the sdk version which you want your app to run on, then eclipse wont complain….
eg: