Reputation: 15
I'm doing an Android app that has a database hosted on a server. When you run the app for the first time, you must register and data is stored on the server.
I would like to delete the user on the server when uninstalling the app of his/her device.
Is this possible?
Upvotes: 0
Views: 44
Reputation: 21
Broadcast Action: An existing application package has been removed from the device. The data contains the name of the package. The package that is being installed does not receive this Intent.
Upvotes: 1
Reputation: 26034
As per Android Document
Broadcast Action: An existing application package has been removed from the device. The data contains the name of the package. The package that is being installed does not receive this Intent.
Conclusion
Not Possible
Suggestion
You can put some Remove Account type of screen or menu inside your application. You can hope user to do that before uninstalling.
Upvotes: 0
Reputation: 950
Perform a task on uninstall in android sorry bro, that is not possible. You just can make 3weeks clearing databases since last login in
Upvotes: 0