Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
603 views
in Technique[技术] by (71.8m points)

uninstallation - 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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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()).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...