The String Build.VERSION.RELEASE
will give you the user-visible version string (i.e 1.5, 1.6, 2.0), while Build.VERSION.SDK_INT
will give you a value from Build.VERSION_CODES
that would be better to use if you want to compare against it programatically.
More Related Contents:
- What is the difference between compileSdkVersion and targetSdkVersion?
- How can I check the system version of Android?
- Is there any way in Android to get the height of virtual keyboard of device
- How to install Android SDK Build Tools on the command line?
- How to downgrade my SDK Version?
- Error:Failed to open zip file. Gradle’s dependency cache may be corrupt
- How do I set ANDROID_SDK_HOME environment variable?
- Android intent for playing video?
- Android SDK location
- Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException
- Can’t accept license agreement Android SDK Platform 24
- Update Android SDK Tool to 22.0.4(Latest Version) from 22.0.1
- Android ADT error, dx.jar was not loaded from the SDK folder
- Show toast widget underneath a view
- Android SDK Manager Not Installing Components
- Can’t upgrade Android SDK Tools
- Android studio- “SDK tools directory is missing”
- how to create a new AVD in eclipse?
- “id cannot be resolved or is not a field” error?
- What are the Android SDK build-tools, platform-tools and tools? And which version should be used?
- How to disable Facebook single sign on for android – Facebook-android-sdk
- Android SDK install: Java SE development Kit (JDK) not found [duplicate]
- Fling Gesture and Webview in Android
- Failure [INSTALL_FAILED_OLDER_SDK] Android Studio
- How to set build and version number of Flutter app
- cmdline-tools : could not determine SDK root
- Can’t find AVD or SDK manager in Eclipse
- Android SDK location should not contain whitespace, as this cause problems with NDK tools
- Android Studio SDK location
- “The following SDK components were not installed: sys-img-x86-addon-google_apis-google-22 and addon-google_apis-google-22”