Android examples for Android OS:OS Version
is API 11 HoneyComb
//package com.book2s; import android.os.Build; public class Main { public static int HONEYCOMB = 11; public static int HONEYCOMB_MR2 = 13; public static final boolean isApi11_HoneyComb() { int sdk = getSDKVersion(); return sdk >= HONEYCOMB && sdk <= HONEYCOMB_MR2; }/*www .j a v a 2 s . co m*/ public static final int getSDKVersion() { return Build.VERSION.SDK_INT; } }