Where to store user data?

850 Views Asked by At

I'm developing an Android application, and I want to restore user settings, when my application will be installed on another phone by the same user.

I don't want to use Dropbox or Google drive, because not all the users have account in these clouds. Id like to use something, that all Android users have. Some cloud linked to google account? But I can't found any.

There should be pretty common solution but I haven't found any information about it.

1

There are 1 best solutions below

1
On BEST ANSWER

For Android 6.0 and newer you can use auto backup. It backups the SharedPreferences and other data stored in your applicationsdirectory up to 25mb. Apps targeting Android 6.0 are automatically using auto backup. You can change this behaviour.

For older versions you can use key-value backup. This is perfect for preferences.