Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3283244
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:01:06+00:00 2026-05-17T20:01:06+00:00

Possible Duplicate: Programmatically obtain the Android API level of a device? How do I

  • 0

Possible Duplicate:
Programmatically obtain the Android API level of a device?

How do I get the Api level of the phone curently running my application? I am sure its simple but I can not find it as all my searches bring up tons of junk.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T20:01:07+00:00Added an answer on May 17, 2026 at 8:01 pm

    Check android.os.Build.VERSION, which is a static class that holds various pieces of information about the Android OS a system is running.

    If you care about all versions possible (back to original Android version), as in minSdkVersion is set to anything less than 4, then you will have to use android.os.Build.VERSION.SDK, which is a String that can be converted to the integer of the release.

    If you are on at least API version 4 (Android 1.6 Donut), the current suggested way of getting the API level would be to check the value of android.os.Build.VERSION.SDK_INT, which is an integer.

    In either case, the integer you get maps to an enum value from all those defined in android.os.Build.VERSION_CODES:

    SDK_INT value        Build.VERSION_CODES        Human Version Name       
        1                  BASE                      Android 1.0 (no codename)
        2                  BASE_1_1                  Android 1.1 Petit Four
        3                  CUPCAKE                   Android 1.5 Cupcake
        4                  DONUT                     Android 1.6 Donut
        5                  ECLAIR                    Android 2.0 Eclair
        6                  ECLAIR_0_1                Android 2.0.1 Eclair                  
        7                  ECLAIR_MR1                Android 2.1 Eclair
        8                  FROYO                     Android 2.2 Froyo
        9                  GINGERBREAD               Android 2.3 Gingerbread
       10                  GINGERBREAD_MR1           Android 2.3.3 Gingerbread
       11                  HONEYCOMB                 Android 3.0 Honeycomb
       12                  HONEYCOMB_MR1             Android 3.1 Honeycomb
       13                  HONEYCOMB_MR2             Android 3.2 Honeycomb
       14                  ICE_CREAM_SANDWICH        Android 4.0 Ice Cream Sandwich
       15                  ICE_CREAM_SANDWICH_MR1    Android 4.0.3 Ice Cream Sandwich
       16                  JELLY_BEAN                Android 4.1 Jellybean
       17                  JELLY_BEAN_MR1            Android 4.2 Jellybean
       18                  JELLY_BEAN_MR2            Android 4.3 Jellybean
       19                  KITKAT                    Android 4.4 KitKat
       20                  KITKAT_WATCH              Android 4.4 KitKat Watch
       21                  LOLLIPOP                  Android 5.0 Lollipop
       22                  LOLLIPOP_MR1              Android 5.1 Lollipop
       23                  M                         Android 6.0 Marshmallow
       24                  N                         Android 7.0 Nougat
       25                  N_MR1                     Android 7.1.1 Nougat
       26                  O                         Android 8.0 Oreo
       27                  O_MR1                     Android 8 Oreo MR1
       28                  P                         Android 9 Pie
       29                  Q                         Android 10
      10000                CUR_DEVELOPMENT           Current Development Version
    

    Note that some time between Android N and O, the Android SDK began aliasing CUR_DEVELOPMENT and the developer preview of the next major Android version to be the same SDK_INT value (10000).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Lock the Android device programmatically Does the application have the ability to
Possible Duplicate: Determine if running on a rooted device How do you determine (programmatically)
Possible Duplicate: How do I get the current GPS location programmatically in Android? I
Possible Duplicate: Programmatically get own phone number in iPhone OS I want to get
Possible Duplicate: Windows Phone 7 close application How do I programmatically close a WP7
Possible Duplicate: Retrieving Android API version programmatically I am trying to retrieve the current
Possible Duplicate: Lock the Android device programmatically I want to lock the screen through
Possible Duplicate: How do I get the current GPS location programmatically in Android? Got
Possible Duplicate: How to close an application programmatically when the user taps on a
Possible Duplicate: How Turn on only Camera flash light programmatically in android? I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.