My Android app has a android:minSdkVersion=”8″ which I want to keep, but at the same time, for users running Android 3.0 and above, I want to create a widget backed up by a collection.
Following the steps here http://developer.android.com/guide/topics/appwidgets/index.html#collections
I run into a compilation error, because I need to use classes from API level 11 (RemoteViewsService).
So is there a way to do this? To keep the app available for people with Android 2.2+ but in it build a widget for people with Android 3.0+? It should be possible.
GMail does it, it’s available for earlier versions of Android but also provides this kind of widgets for Android 3.0+ users.
Thanks
I think perhaps the following answer on SO can provide some insight:
Android Min SDK Version vs. Target SDK Version
In essence, you have two variables you can define: Min SDK and Target SDK. The above link will explain in great clarity how to use them.