Android examples for Android OS:OS Version
is API 16 Jelly Bean
//package com.book2s; import android.os.Build; public class Main { public static int JELLY_BEAN = 16; public static final boolean isApi16_JellyBean() { int sdk = getSDKVersion(); return sdk == JELLY_BEAN; }/* ww w .j a v a 2 s . com*/ public static final int getSDKVersion() { return Build.VERSION.SDK_INT; } }