I have a App created on API 8. Now I want to make it work with ICS and for that I need additional imports which are not available in API 8.
I want to add following imports:
import android.provider.CalendarContract;
import android.provider.CalendarContract.Calendars;
import android.provider.CalendarContract.Events;
So do I have to make a diffenent app just for API > 15? The name of the App should not change.
Or maybe it is possible to place 2 App versions and make the minSdkVersion and maxSdkVersion according to the API level into Google Play?
How do you handle that?
Great!
No problem! Since
importstatements are applied at compile time, so long as you set your project’s build target (e.g., Project > Properties > Android) to API Level 14 or higher, your code will compile fine.No. Just use version guard blocks to ensure that you do not try using the newer code on older devices:
That should not be necessary.