android - Method that runs on the app when it is uninstalled -


i'm using android notification system. system save id devices notification sent. when user uninstall app , attempts send 1 notification throws error.

can code method when user unistall app? android has method runs on app when uninstalled?

no. app not notification while being uninstalled. there's action_package_removed broadcast, app not being broadcasted once package removed, app gone @ time. docs read (here):

broadcast action: existing application package has been removed device. data contains name of package. the package being installed not receive intent.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -