Android examples for Android OS:OS Version
has Gingerbread
//package com.java2s; import android.os.Build; public class Main { public static boolean hasGingerbread() { return Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD; }//from w ww.j a v a2 s. c o m }