Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get application uninstall event in android

Hi i have one application which play with content provider(contacts etc) now when i uninstall my application i want to arranger the original data of content provider.

Is there any way, if my application is going uninstall at that time i get event and do my work.

Thanks

like image 202
dhaiwat Avatar asked May 20 '10 14:05

dhaiwat


1 Answers

Your application will not be informed when it is being uninstalled. However, Android will get rid of all data in your application local data store (e.g., getFilesDir()).

like image 172
CommonsWare Avatar answered Oct 09 '22 10:10

CommonsWare