Android Utililty Methods Android Version Check

List of utility methods to do Android Version Check

Description

The list of methods to do Android Version Check are organized into topic(s).

Method

booleanhasFroyo()
Used to determine if the device is running Froyo or greater
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO;
booleanhasGingerbread()
Used to determine if the device is running Gingerbread or greater
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD;
booleanhasHoneycomb()
Used to determine if the device is running Honeycomb or greater
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB;
booleanhasHoneycombMR1()
Used to determine if the device is running Honeycomb-MR1 or greater
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR1;
booleanhasICS()
Used to determine if the device is running ICS or greater
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH;
booleanhasJellyBean()
Used to determine if the device is running Jelly Bean or greater
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
booleanisHCMR1OrAbove()
is HCMR Or Above
return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB_MR1;
booleanisHCMR2OrAbove()
is HCMR Or Above
return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB_MR2;
booleanisHCOrAbove()
is HC Or Above
return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB;
booleanisICSOrAbove()
is ICS Or Above
return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH;