How to know if application is disabled in Android ICS

前端 未结 3 1330
温柔的废话
温柔的废话 2020-12-18 03:51

In Android ICS we have an ability to disable built-in applications. Is it possible to know if specific app is disabled or enabled in code?

3条回答
  •  星月不相逢
    2020-12-18 04:25

    Try http://developer.android.com/reference/android/content/pm/PackageManager.html#getApplicationInfo%28java.lang.String,%20int%29 and check the 'enabled' flag in the returned ApplicationInfo object.

提交回复
热议问题