0

How can I know which Android API level I am using. I need to make sure I am using version 1.1.0.

Edit:

My bad. I need level 14.

Thank you.

3

3 Answers 3

2

Build.VERSION.RELEASE will give you the version number as a String, such as 1.5

2
  • Where is Build.Version.Release located?
    – user379888
    Commented May 5, 2015 at 14:11
  • android.os.Build.VERSION.RELEASE
    – Delconis
    Commented May 5, 2015 at 14:14
1

How can I know which Android API level I am using

I do not know what you mean by "using".

You can determine the API Level of the device that you are running on via Build.VERSION.SDK_INT.

I need to make sure I am using version 1.1.0

There was never a "1.1.0" release of Android. Android 1.1 did not have a ".0" suffix. Android 1.1 was released in early 2009 and is used on approximately zero devices today.

0

<uses-sdk android:minSdkVersion="14" /> in your AndroidManifest.xml

In general you're also interested in the compileSdkVersion of the project, which you can see in your build.gradle file.