is API 17 Unknown Or Later - Android Android OS

Android examples for Android OS:OS Version

Description

is API 17 Unknown Or Later

Demo Code


//package com.book2s;

import android.os.Build;

public class Main {
    public static int ANDROID_UNKNOWN = 17;

    public static final boolean isApi17_UnknownOrLater() {
        return getSDKVersion() >= ANDROID_UNKNOWN;
    }/*from  ww w.  j av a 2  s.co m*/

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

Related Tutorials