1

I'm developing an Android application that needs to backup (and restore) some data stored in an sqlite database to (from) google (or gmail). But I don't have a clue about where to start. I read the backup guide in the Android documentation. But that's not what I need since the backup operation in that way might not be taken immediately, and it needs the device user to turn on the backup option in "settings->privacy".
I need a way that first authenticates the user's account (already on the device) using OAuth or OAuth 2.0, then after authentication, the app sends the data to gmail and can later get it back from gmail to restore it to the device.
How can I implement this?
Another question: when I send the data to gmail, what format should i use? The database file, XML, or something else?

SherylHohman
  • 16,580
  • 17
  • 88
  • 94
Chris.Zou
  • 4,506
  • 6
  • 31
  • 38
  • Drop box can be an option!!.... – AAnkit Jul 14 '12 at 08:50
  • I have a similar question here.. http://stackoverflow.com/questions/21984632/google-drive-to-back-up-and-restore-database-and-shared-preferences-of-android-a – sb_269 Feb 24 '14 at 13:40

0 Answers0