Perform a task on uninstall in android [duplicate]
问题 This question already has answers here : How can an app detect that it's going to be uninstalled? [duplicate] (4 answers) Closed 3 years ago . I have developed an Android app. Now I want to perform a few operations (i. e. - Reset the settings etc.. ) at the moment the app gets uninstalled from the phone. Is it possible to reigster a listener or a function that is called at the moment the app is removed? 回答1: Sadly android at the moment does not give you a possibility to perform code at the