Reputation: 85
I'm working on a fighting game with many characters to unlock and I'm trying to store each user app data online so if they reinstall the app they can get their save data back again. The game saves in-game currency and some other data using SharedPreferences
and saves the data of each character in a database using SQLite
. Now I'm trying to use Google Snapshot Api but there are 2 problems:
byte[] bytes
to snapshot.getSnapshotContents().writeBytes(bytes);
.Upvotes: 0
Views: 70
Reputation: 1805
You may Refer any preferable back-end server for storing data online
PHP with MySQL
Firebase cloud storage
Use Web Services in any of this language Php, .Net, Java, etc.
I personally using PHP-MySQL and Fire-base
refer Following links:
https://www.tutorialspoint.com/android/android_php_mysql.htm
https://developer.android.com/studio/write/firebase
Upvotes: 1