is API 16 Jelly Bean - Android Android OS

Android examples for Android OS:OS Version

Description

is API 16 Jelly Bean

Demo Code


//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;
    }
}

Related Tutorials