Is there an intent or something that can tell my app it is being uninstalled?
I ask because my app will make a change to a user's setting on the phone (default ringtone), and I want my app to automatically restore the settings original value when my app is uninstalled.
I dont want my user to have to remember to *manually* run some "run this before you uninstal me" routine in my app before the user uninstalls my app - I want my app to automatically restore the user's original ringtone setting when they uninstall the app using the playstore or system app manager or whatever.
Any suggestions on how to do this?
I ask because my app will make a change to a user's setting on the phone (default ringtone), and I want my app to automatically restore the settings original value when my app is uninstalled.
I dont want my user to have to remember to *manually* run some "run this before you uninstal me" routine in my app before the user uninstalls my app - I want my app to automatically restore the user's original ringtone setting when they uninstall the app using the playstore or system app manager or whatever.
Any suggestions on how to do this?