Android examples for Android OS:OS Version
can I Use by api Level
import android.os.Build; public class Main { public static boolean canIUse( int apiLevel) { return Build.VERSION.SDK_INT >= apiLevel; }//from w w w . ja v a 2 s . com }