DevDrawer icon indicating copy to clipboard operation
DevDrawer copied to clipboard

Add Import / Export settings

Open tunitowen opened this issue 12 years ago • 10 comments

Add import / export to JSON / XML

tunitowen avatar Feb 03 '13 12:02 tunitowen

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

ramdroid avatar Apr 17 '13 08:04 ramdroid

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

tunitowen avatar Apr 22 '13 19:04 tunitowen

Actually we can do it using BackupManager very very easily.

tasomaniac avatar Mar 19 '14 07:03 tasomaniac

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!?

ramdroid avatar Mar 19 '14 08:03 ramdroid

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

tunitowen avatar Mar 20 '14 11:03 tunitowen

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.

tasomaniac avatar Mar 20 '14 11:03 tasomaniac

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

tasomaniac avatar Mar 20 '14 11:03 tasomaniac

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.

ramdroid avatar Mar 20 '14 13:03 ramdroid

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.

tasomaniac avatar Mar 20 '14 13:03 tasomaniac

+1

scottyab avatar Jan 29 '15 14:01 scottyab