is API 14 Ice Cream Sandwich - Android Android OS

Android examples for Android OS:OS Version

Description

is API 14 Ice Cream Sandwich

Demo Code


//package com.book2s;

import android.os.Build;

public class Main {
    public static int ICE_CREAM_SANDWICH = 14;
    public static int ICE_CREAM_SANDWICH_MR1 = 15;

    public static final boolean isApi14_IceCreamSandwich() {
        int sdk = getSDKVersion();
        return sdk == ICE_CREAM_SANDWICH && sdk <= ICE_CREAM_SANDWICH_MR1;
    }// w  w  w  .j a  v a  2s.  co m

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

Related Tutorials