is API 11 HoneyComb Or Later - Android Android OS

Android examples for Android OS:OS Version

Description

is API 11 HoneyComb Or Later

Demo Code


//package com.book2s;

import android.os.Build;

public class Main {
    public static int HONEYCOMB = 11;

    public static final boolean isApi11_HoneyCombOrLater() {
        return getSDKVersion() >= HONEYCOMB;
    }//from   ww  w .j a  va  2 s.c  o m

    public static final int getSDKVersion() {
        return Build.VERSION.SDK_INT;
    }
}

Related Tutorials