Java tutorial
//package com.java2s; public class Main { /** * get android os version no * @return */ public static float getAndroidVersion() { return Float.valueOf(android.os.Build.VERSION.RELEASE); } }