Here you can find the source of isKitKatOnly()
public static boolean isKitKatOnly()
//package com.java2s; import android.os.Build; public class Main { public static boolean isKitKatOnly() { return Build.VERSION.SDK_INT == Build.VERSION_CODES.KITKAT; }//from w w w . j a v a2s . c o m }