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