is API 14 Ice Cream Sandwich Or Later - Android Android OS

Android examples for Android OS:OS Version

Description

is API 14 Ice Cream Sandwich Or Later

Demo Code


//package com.book2s;

import android.os.Build;

public class Main {
    public static int ICE_CREAM_SANDWICH = 14;

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

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

Related Tutorials