I am writing an application with instant messaging. Users will write text or share images in the IM function. The text data and the image file name are stored in the sqlite file, and the images are stored in the device .
Since my server will not save the data, the user will not receive a chat record when he switches to a new device . As for whatsapp, they allow users to regularly save chat recordings and images on Google Drive and return data from disk, as shown in the figure below.
When I switch to my own Google drive, I would find that “Whatsapp” is connected to my Google drive, as shown below.
I am new to the Google Drive API on Android, and I would like to backup my database and SQLite images in the same way as Whatsapp. I know that there are several issues related to backing up the sqlite database to Google Drive, but it seems that it contains only part of the codes, and this makes it difficult for beginners to understand.
Will there be any sample projects on github, questions about stackoverflow or tutorials that will let me know how to backup sqlite database and images programmatically on Android step by step
In addition, I am surprised to see that I’m just connected to my Google Drive , but no more than other applications, so I don’t know if a third-party developer will have the same access to Google. Manage and complete the backup in the same way as Whatsapp.
android sqlite google-drive-sdk google-drive-android-api google-drive-api
Antoine murion
source share