I want to publish my application for more than one Version of Android. Thats why I wrote this in my Manifest xml
<uses-sdk android:minSdkVersion="8" />
My app shows a TimePicker. The TimePicker usually looks different in version 4.0.3. Since I choose version 8 as my default sdk version, the TimePicker looks like the old one, even then I run the app on a 4.0.3 device.
Is there any way to choose sdk version 15 when this app is running on a 4.0.3 device?
Your
apk
is only compiled once, so no. Instead, you should set in yourAndroidManifest.xml
,and then check in your code (at runtime) that old devices don't make use of the methods provided in the new framework. For instance,