I'm planning on developing Android Apps. I downloaded the SDK and AVD manager, and about to download the SDK platforms.
My question is, I want to develop apps for 2.x platform. Do I need to download API 7-10? Which one to target?
Also, if you have tips regarding this, please mention them. Thank you.
When you upload an APK, it must meet Google Play's target API level requirements. New apps must target Android 12 (API level 31) or higher; except for Wear OS apps, which must target Android 11 (API level 30) or higher.
You can determine the lowest possible platform version by compiling the application against successively lower build targets. After you determine the lowest version, you should create an AVD using the corresponding platform version (and API Level) and fully test your application.
Android api level 19 means the android os version (kitkat). It contains the standard android packages(from Android Open Source Projects). But the google api 19 is the android api 19+ google api's like google settings and other packages provided by google.
We recommend that you explicitly set the Target Android version to the latest version of Android that you use to test your app. Ideally, it should be set to the latest available Android SDK version – this allows you to use new APIs prior to working through the behavior changes.
It is not necessary to download all the platforms, just download the latest SDK and make your application compatible with other SDK.
For that you just need to define android:minSDKVersion and android:maxSDKVersion, android:targetSDKVersion.
<uses-sdk android:maxSdkVersion="12"
android:minSdkVersion="8">
</uses-sdk>
Here is a detailed article on "Compatibility" in "Best Practices" section at Android Developer site.
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