I know that there are many question on this, and I also read this page. However, I am still confused about the exact choices.
If I have a mobile phone that runs Android 2.3.6
I know that the Minimum Required SDK
should be the lowest version of Android that my app supports.
So for example I will choose Android 2.2
or less than that value, say Android 1.5
The confusing parts Target SDK
and Compile with
I have installed these below: (there is no Android 2.3.6
available in the SDK manager)
Android 4.2.2 (API 17)
Android 3.0 (API 11)
Android 2.3.3 (API 10)
Android 2.2 (API 8)
Is the Target SDK
should be set to the maximum which is Android 4.2.2
, irrespective to what my mobile phone uses; which is Android 2.3.6
?
choosing Android 4.2.2
will cover all phones below it? is that right?
Or
Is it should be set to the exact/nearest value as my phone. Here the available one is Android 2.3.3
? But not exceed my mobile phone Android 2.3.6
Is Compile with
must be set to the maximum Android 4.2.2
or what?
Is the Target SDK should be set to the maximum which is Android 4.2.2, irrespective to what my mobile phone uses; which is Android 2.3.6 ?
That is up to you, but its always recommended to use the latest sdk as a target.
It just says that the application will work between min and target sdk, but tested for the target sdk alone, so if there are any compatible settings system must take care of it.
choosing Android 4.2.2 will cover all phones below it? is that right?
Your app always covers from Min-SDK to Max-SDK. If the Min-SDK is 1 and Max-SDk is not set, then your app supports all the APIs.
Is it should be set to the exact/nearest value as my phone. Here the available one is Android 2.3.3? But not exceed my mobile phone Android 2.3.6
Must be the latest SDK
Is Compile with must be set to the maximum Android 4.2.2 or what?
Its just your choice of which SDK to compile your app with. But better go with the Target-SDK which in turn is the Latest.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With