Here you can find the source of isGingerbread()
public static boolean isGingerbread()
//package com.java2s; import android.os.Build; public class Main { /**/*www . j av a 2 s . c om*/ * I guess this should really be named "isGingerbreadOrAbove()" but I suck at function naming. * @return */ public static boolean isGingerbread() { return Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD; } }