Android: API level VS. Android version

Android

Android Problem Overview


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

Android Solutions


Solution 1 - Android

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.

Solution 2 - Android

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).

Solution 3 - Android

In addition to the answers provided, there is a detailed explanation of the Android Platform usage on Wikipedia (permalink).

This table will give you a highlight of Android API vs Version.

enter image description here

Solution 4 - Android

> API Level is an integer value that uniquely identifies the framework API revision offered by a version of the Android platform.

You can have a new Android version with the same API release as the previous version.

Check out https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels

Solution 5 - Android

A device running Android with version X will usually support applications written for API X and below.

This means if you want your app to support API 8, devices ver 8 will be able to run it, but also devices of ver 9, 10, 11, etc.

Here is the table which explains the ties between the numbers: http://developer.android.com/guide/appendix/api-levels.html

Solution 6 - Android

In a short note:

Main difference between them is that API level for android application development framework API on the other hand android version is maintained to mention new features to user level.

In details:

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. The framework API consists of:

  • A core set of packages and classes
  • A set of XML elements and attributes for declaring a manifest file
  • A set of XML elements and attributes for declaring and accessing resources
  • A set of Intents
  • A set of permissions that applications can request, as well as permission enforcements included in the system

For more details you can visit this link: https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels

Solution 7 - Android

API = a set of functions and procedures allowing the creation of applications that access the features or data of an operating system, application, or other service.

Android = Android is a mobile operating system developed by Google.

So if we develop new API with new features they can be not supported in old android operation system, so we take old operation system , ++ version add support for new API and there we go (:

on the other hand if we have new operation system with new features we want to upgrade old API to support it, so we ++ version of the API.

Sound weird yeah ?

Solution 8 - Android

In simple words:

Android Version : Android is basically a mobile operating system developed by a consortium of developers known as the Open Handset Alliance and commercially sponsored by Google and they keep on updating Android by adding new features. So every new version of android have a version number known as Android version

API Level : API Level allow us to specify an app's/application's compatibility with one or more versions of Android, by means of an integer. Each versions of Android is associated with an API Level. So on a device the API Level expressed by an app/application is compared to the API Level associated with the version of the Android installed on the device.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRamzi KhahilView Question on Stackoverflow
Solution 1 - AndroidJaa-cView Answer on Stackoverflow
Solution 2 - AndroidAlastairView Answer on Stackoverflow
Solution 3 - AndroiddsharewView Answer on Stackoverflow
Solution 4 - AndroidRickView Answer on Stackoverflow
Solution 5 - AndroidtalkolView Answer on Stackoverflow
Solution 6 - AndroidMonir ZzamanView Answer on Stackoverflow
Solution 7 - AndroidStav BodikView Answer on Stackoverflow
Solution 8 - AndroidPrateek GuptaView Answer on Stackoverflow