Java tutorial
//package com.java2s; import android.os.Build; public class Main { /** * Returns OS Version * * @return String */ public static String getOsVersionName() { return String.valueOf(Build.VERSION.RELEASE); } }