My question popped up a very similar question, this one. But the accepted answer (the single one) points to another question, this one, which doesn't really answer the original question.
The Android documentation states:
The Build Target specifies which Android platform you'd like your application built against.
But what does it mean really?
The way I see it, I can have the minSdkVersion=4
and targetSdkVersion=10
but set the build target to API Level 4. What will happen? Eclipse assumes I'm developing for API Level 4 and any method, constant or whatever defined on API Levels above 4 will not be available to me. If I try to use them, the application will not compile. I'm aware of this.
But let me put it differently...
Let's say I have only set minSdkVersion=4
, targetSdkVersion
is not defined. I am also not using any method or constant only available on API Levels above 4. In this situation, does it really matter the build target I pick? Will it have any impact in the final APK?
Source: http://simonvt.net/2012/02/07/what-api-level-should-i-target/