you also can use these constants as per the developer documentation -
http://developer.android.com/reference/android/content/pm/PackageManager.html#getApplicationEnabledSetting(java.lang.String)
Returns the current enabled state for the component. May be one of COMPONENT_ENABLED_STATE_ENABLED
, COMPONENT_ENABLED_STATE_DISABLED
, or COMPONENT_ENABLED_STATE_DEFAULT
. The last one means the application's enabled state is based on the original information in the manifest as found in ComponentInfo.