Here you can find the source of isKitKat()
public static boolean isKitKat()
//package com.java2s; import android.os.Build; public class Main { public static boolean isKitKat() { return Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT; }/*from w ww . j a v a 2 s .c om*/ }