Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: API level VS. Android version

Tags:

android

I'm new to Android developing, and I would like to know what is the connection or difference between the version and the API level. What is each one referring to? And what does it mean when I decide to develop some app for API 14 or for android version 4.0?

Or is one a subset of the other? I simply didn't get the difference, and why are there two counters?

Thanks

like image 881
Ramzi Khahil Avatar asked Dec 25 '11 12:12

Ramzi Khahil


People also ask

What is difference between Android version and API level?

API Level is an integer value that uniquely identifies the framework API revision offered by a version of the Android platform. The Android platform provides a framework API that applications can use to interact with the underlying Android system.

Is API level and SDK version same?

It is defined in build. For example, if you set the minSdk to 30, an SDK version corresponds to API Level 30 and Android 11. It makes your app run only on devices with Android 8 or higher versions.

What version of Android is API 30?

Beginning in August 2021, the Google Play Console requires that new apps target API level 30 (Android 11.0) or higher.


2 Answers

Well, API is for development, so the changes in new API version are more "inside". But new version of Android usually adds more features for users, that are "visible".

Check this page http://developer.android.com/guide/appendix/api-levels.html, there is a table that shows relations between versions and API levels.

like image 194
Jaa-c Avatar answered Sep 18 '22 15:09

Jaa-c


Multiple versions of Android can have the same API level but the API as an integer allows developers to more easily target devices. The chart below will give you an idea of their relationship but only the documentation contains exhaustive listings of the API levels and how they differ from each other.

Platform Versions

Source: developer.android.com.

Because this data is gathered from the new Google Play Store app, which supports Android 2.2 and above, devices running older versions are not included. However, in August, 2013, versions older than Android 2.2 accounted for about 1% of devices that checked in to Google servers (not those that actually visited Google Play Store).

like image 41
Alastair Avatar answered Sep 18 '22 15:09

Alastair