public class BuildUtils
extends java.lang.Object
| Constructor and Description |
|---|
BuildUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkForRunningService(android.content.Context ctx,
java.lang.String serviceClassName)
Check for a running service
|
static boolean |
isICS()
Check to see if this device is running ICS or greater
|
static boolean |
isJellyBean()
Check to see if this device is running Jelly Bean 4.1 or not
|
static boolean |
isJellyBeanMR1()
Check to see if this device is running JellyBean 4.2 or greater (MR1)
|
static boolean |
isJellyBeanMR2()
Return whether not the device is running JellyBean 4.3 or greater (MR2)
|
static boolean |
isKitKat()
Return whether or not the device is running KitKat 4.4
|
static boolean |
isLollipop()
Return whether or not the device is running Lollipop 5.0
|
static boolean |
isTablet(android.content.Context context)
Return whether or not this device is a tablet
|
public static boolean isLollipop()
Build.VERSION_CODES.LOLLIPOPpublic static boolean isKitKat()
Build.VERSION_CODES.KITKATpublic static boolean isJellyBeanMR2()
Build.VERSION_CODES.JELLY_BEAN_MR2public static boolean isJellyBeanMR1()
Build.VERSION_CODES.JELLY_BEAN_MR1public static boolean isJellyBean()
Build.VERSION_CODES.JELLY_BEANpublic static boolean isICS()
Build.VERSION_CODES.ICE_CREAM_SANDWICHpublic static boolean isTablet(android.content.Context context)
public static boolean checkForRunningService(android.content.Context ctx,
java.lang.String serviceClassName)
ctx - the application contextserviceClassName - the service class name