ACTION_MY_PACKAGE_REPLACED constant
String
const ACTION_MY_PACKAGE_REPLACED
Broadcast Action: A new version of your application has been installed over an existing one. This is only sent to the application that was replaced. It does not contain any additional data; to receive it, just use an intent filter for this action.
This is a protected intent that can only be sent by the system.
Implementation
static const String ACTION_MY_PACKAGE_REPLACED =
"android.intent.action.MY_PACKAGE_REPLACED";