user3549578
user3549578

Reputation: 1

Android - Where do I store app specific data that doesn't get wiped on app update but does get deleted on uninstall?

I'm having trouble determining where I should save data for an android game. I'm looking for a place that provides the following conditions:

  1. The user can find this folder to back up and restore their data.
  2. The data doesn't get wiped if there is an update to the app.
  3. The data is cleared when the app is uninstalled.

The data is generated by the app and is not replaceable so it is important that it persists through updates. However, the data is specific to the app and not something generic like a picture.

Upvotes: 0

Views: 44

Answers (1)

Farooq Arshed
Farooq Arshed

Reputation: 1963

You can store the data in the Shared Preferences. It will fit your requirements

Upvotes: 2

Related Questions