Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Android API to use?

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.

like image 293
Ruel Avatar asked Oct 10 '11 05:10

Ruel


People also ask

Which API should I use Android Studio?

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.

How to choose Android platform version?

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.

What is API 19 in Android?

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.

Which Android version should I target?

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.


1 Answers

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.

like image 89
Paresh Mayani Avatar answered Sep 22 '22 18:09

Paresh Mayani