tunitowen/DevDrawer

Add Import / Export settings

tunitowen opened this issue · 10 comments

Add import / export to JSON / XML

how about syncing across devices, instead of old fashioned import/export ;)

Goo idea @ramdroid ... I'll definitely look into that

Actually we can do it using BackupManager very very easily.

BackupManager would be the easiest solution, but definitely not the best one. You can't force a backup when you changed a setting and hence you are unable to synchronize instantly. I guess a real Google Drive sync is the proper way to do this. Though maybe it's also possible with Google Play Games services!?

Google Cloud Save looks to be a good option, just need to find time to do it :)

Cloud save is actually very good but the app will look like a Game. When
the user logins, it all says Game everywhere.

I think the BackupManager is very good. DashClock is using it and I format
my phone every time. When I install new rom and install DashClock
afterward, all my settings are there.

Moreover, there is not backup system at all. BackupManager is simple to
implement and it just works.

Actually, we can force a sync of the data after a settings in a
SharedPreferences is changed when we use BackupManager.

Actually I think you can't.

"When an application has made changes to data which should be backed up, a call to dataChanged() will notify the backup service. The system will then schedule a backup operation to occur in the near future. Repeated calls to dataChanged() have no further effect until the backup operation actually occurs."

A backup is initiated but it doesn't happen immediately. Sure it works fine when you're only using 1 device, but it's critical when you want to have your settings synchronized over a couple devices.

Import export feature is one thing, syncing data on every device is another
thing.

The title says import and export settings. In that sense, backupmanager is
the most logical thing to implement.

Autosync functionality would be awesome though.