Can I see on the application that the app_remove event is triggered in my Android application?

118 Views Asked by At

Is there a way to catch the app_remove event fired in my Android app? In any way, when the application is uninstalled, there is data that I need to delete from the device during uninstallation. Is there any way I can do this with firebase app_remove or otherwise?

What I mean by data here is that the user makes some settings on his phone together with the application. I need to get these settings back as soon as the app is deleted. Storage has nothing to do with it.

1

There are 1 best solutions below

2
CommonsWare On

Is there a way to catch the app_remove event fired in my android app?

No, sorry.

when the application is uninstalled, there is data that I need to delete from the device during uninstallation

Store the data in locations that will be cleaned up automatically when the app is uninstalled. That includes locations obtained from Context, such as getFilesDir(), getCacheDir(), and getExternalFilesDir().