The more I read about this, the more I get confused. It seems easy while reading, but few seconds later, it just bounces over my head. Anyway, here is my question.
I have a published app, and I wish to add admob advertising to it. As far as I read, i need to have the targetSDKVersion in my manifest file, to be 13 or higher. When i set the targetSDKVersion to 13, eclipse shows me a warning saying,
“Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details.”
Well, as of now, this is my understanding of minSDKVersion and targetSDKVersion.
minSDKVersion = this is for backward compatability. I have my minSDKVersion set to 10, for Android 2.3.3, which is the version i developed my application. So, people with a minimum of Android version of 2.3.3 will be able to use my application.
targetSDKVersion = this is to tell that I have used a feature in my application, that belonged to the targetSDKVersion and people with versions equal to and above will get to see that feature, where as people with lower versions, will be able to use the application, but doesn’t get to see the feature.
So, if my understanding is correct, what about the warning? What does this warning mean?
And also, admob states that it requires a minimum of Android 1.5 or later. But the documentation says, compile against Android version 3.2. What about this?
I am pretty new to android as well as admob, so please bear with me, if these are pretty basic questions.
Thanks!!!
You are getting that warning as
targetSdkVersionis used to tell the system that you have tested against the target version and the system should not enable any compatibility behaviors to maintain your app’sforward-compatibilitywith the target version. And now thetargetSdkVersionversion is16but you are setting it in13so it shows that warning.If you change it to
16then or17then you will not get that warning.You can learn more from here application’s compatibility