Android examples for Android OS:OS Build
The user-visible version string.
//package com.java2s; public class Main { /**//from w ww . j a v a 2 s. c om * The user-visible version string. E.g., "1.0" or "3.4b5". * @return */ public static final String obtainOsVersion() { String os_version = android.os.Build.VERSION.RELEASE; if (os_version == null) { os_version = ""; } return os_version; } }