Android Utililty Methods Device Version Check

List of utility methods to do Device Version Check

Description

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

Method

booleanhasHoneycomb()
Checks the current building sdk is honeycomb or not.
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB;
intGetSdkLevel()
Get Sdk Level
return Build.VERSION.SDK_INT;
StringgetDeviceId(Activity act)
get Device Id
String id = Secure.getString(act.getContentResolver(),
        Secure.ANDROID_ID);
return id;