Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Import / Export settings #2

Open
tunitowen opened this issue Feb 3, 2013 · 10 comments
Open

Add Import / Export settings #2

tunitowen opened this issue Feb 3, 2013 · 10 comments
Assignees

Comments

@tunitowen
Copy link
Owner

Add import / export to JSON / XML

@ghost ghost assigned tunitowen Feb 3, 2013
@ramdroid
Copy link
Contributor

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

@tunitowen
Copy link
Owner Author

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

@tasomaniac
Copy link

Actually we can do it using BackupManager very very easily.

@ramdroid
Copy link
Contributor

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

@tunitowen
Copy link
Owner Author

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

@tasomaniac
Copy link

tasomaniac commented Mar 20, 2014

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
Copy link

tasomaniac commented Mar 20, 2014

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

@ramdroid
Copy link
Contributor

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.

@tasomaniac
Copy link

tasomaniac commented Mar 20, 2014

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.

@scottyab
Copy link

+1

hameno referenced this issue in PSDev/DevDrawer Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants