membersound
membersound

Reputation: 86657

Testing backwards compatibility?

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?

Upvotes: 1

Views: 199

Answers (1)

Kumar Vivek Mitra
Kumar Vivek Mitra

Reputation: 33534

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:

   < uses-sdk android:minSdkVersion="10" />

Upvotes: 1

Related Questions