String android.content.Intent.ACTION_PACKAGE_CHANGED = "android.intent.action.PACKAGE_CHANGED"
Broadcast Action: An existing application package has been changed (e.g. a component has been enabled or disabled). The data contains the name of the package.
* EXTRA_UID containing the integer uid assigned to the package.
* EXTRA_CHANGED_COMPONENT_NAME_LIST containing the class name of the changed components.
* EXTRA_DONT_KILL_APP containing boolean field to override the default action of restarting the application.
This is a protected intent that can only be sent by the system.
------------------
当一个应用被改变时会触发这个广播,比如这个应用被设置为不可用或可用时。其实我到现在还不知道这个包在哪里用过,我看过launcher应用中用了这东东,但测试了下,发现重新安装应用也不会触发这个广播,而是先删除后增加。
在这个change广播中,intent包括如下数据:
1.被改变的应用的包名
2.被改变的应用的ID
3.被改变的应用的类名列表
4.是否重起这个应用
这个广播只能由系统发出。
Broadcast Action: An existing application package has been changed (e.g. a component has been enabled or disabled). The data contains the name of the package.
* EXTRA_UID containing the integer uid assigned to the package.
* EXTRA_CHANGED_COMPONENT_NAME_LIST containing the class name of the changed components.
* EXTRA_DONT_KILL_APP containing boolean field to override the default action of restarting the application.
This is a protected intent that can only be sent by the system.
------------------
当一个应用被改变时会触发这个广播,比如这个应用被设置为不可用或可用时。其实我到现在还不知道这个包在哪里用过,我看过launcher应用中用了这东东,但测试了下,发现重新安装应用也不会触发这个广播,而是先删除后增加。
在这个change广播中,intent包括如下数据:
1.被改变的应用的包名
2.被改变的应用的ID
3.被改变的应用的类名列表
4.是否重起这个应用
这个广播只能由系统发出。