0

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?

nhahtdh
  • 55,989
  • 15
  • 126
  • 162
user2318814
  • 15
  • 1
  • 4
  • Find more info here http://stackoverflow.com/questions/15431922/how-to-know-that-an-app-is-going-to-be-uninstalled-in-android Looks like it works in some cases – Ryzh Sep 18 '13 at 13:16
  • Isn't any answer helped you? If you got any solution, please post it here. – Chintan Rathod Sep 19 '13 at 07:22

3 Answers3

1

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.

0

Perform a task on uninstall in android sorry bro, that is not possible. You just can make 3weeks clearing databases since last login in

Community
  • 1
  • 1
Lebedevsd
  • 950
  • 5
  • 12
  • Thanks, but i can't delete users from the database if i am not sure that the user has uninstalled the app – user2318814 Sep 18 '13 at 13:19
  • some times we need to make some evristic algorithms, in you case i seggest you to clean user table after some time he is offline – Lebedevsd Sep 18 '13 at 13:30
0

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.

Chintan Rathod
  • 25,864
  • 13
  • 83
  • 93