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
231 views
in Technique[技术] by (71.8m points)

android - How to store data that remains after uninstall

I want to store some data that should remain also after application uninstall and to be accessible by a new version of this application. Share preferences/files are not a solution as they are removed when program is uninstalled, also writing to internal memory is not a solution (also removed with uninstall). Writing to external public folders I see that is not removed but this would require an external SD Card and don't want to be constrained by this. I don't know about using the SQLite database, how it works? It could be a solution for what I want ? Or any other solutions would be appreciated.

See Question&Answers more detail:os

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

1 Answer

0 votes
by (71.8m points)

The databases made by your app will be stored in /data/data/your.package.name/databases/ and will be deleted on uninstallation of the app.

So, that's not a solution. I think the only way would be using the SD-card.


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

...