0

when I use serializible to store data from an Android app in the internal storage, is there a danger of losing data, or does the data remain safed, even after an update?

  • Does this answer your question? [Does Android clean app cache on update?](https://stackoverflow.com/questions/51148717/does-android-clean-app-cache-on-update) – Ryan M Aug 18 '20 at 20:09

1 Answers1

0

App data remains after an app update or a system update. It does not survive the app being uninstalled and reinstalled. However, app data back up might be what you are looking for. Consult the docs here for more info.

If you are serializing your own classes, and the classes might change as your app is updated, there are additional issues (independent of Android) that you need to consider. See, for example, this question.

Ted Hopp
  • 232,168
  • 48
  • 399
  • 521