Android package replaces intent

In my application, I am listening to the following 3 intentions using a broadcast receiver.

ACTION_PACKAGE_REPLACED
ACTION_PACKAGE_REMOVED
ACTION_PACKAGE_ADDED

The problem is that whenever I reinstall any application, I receive first ACTION_PACKAGE_REMOVED, then I receive ACTION_PACKAGE_ADDED, then I receive ACTION_PACKAGE_REPLACED.

Is there a way to know that when you reinstall the application objects ACTION_PACKAGE_REMOVEDand ACTION_PACKAGE_ADDEDbelong ACTION_PACKAGE_REPLACED. I mean, this is not an intention when only the application is uninstalled and installed accordingly.

thanks Dalvin

+3
source share
1 answer

, - EXTRA_REPLACING, ACTION_PACKAGE_REMOVED, Add.

, /. , , SO, .

+5

All Articles