Here you can find the source of getAndroidVersion()
static public String getAndroidVersion()
//package com.java2s; import android.os.Build; public class Main { static public String getAndroidVersion() { return Build.VERSION.RELEASE; }/* w w w .java2 s. c om*/ }