An application can specify a BroadcastReceiver with an action:
"android.intent.action.PACKAGE_REMOVED"
It will be called every time a package is deleted, even if it is its own application package. Then, in Receiver application can check which package has been removed and how to respond.
Please note that different versions of the system may relate to this differently, giving Receiver different amount of time before closing the application. Thus, the action taken should be quick and aimed at an external target, for example, send an ACTION_VIEW Intent with the URL of the web page in which you mentioned ACTION_VIEW
Kelevandos
source share