Android examples for Android OS:OS Build
get SDK Version
//package com.java2s; import android.os.Build; public class Main { public static int getSDKVersion() { return Integer.parseInt(Build.VERSION.SDK); }// w ww . j a v a2 s. c o m }