Sample Projects about the backup of Sqlite file and photos on Google Drive programmatically in Android : <p>I am writting an app with an instant messenger function. Users would write text or share images in the IM function. The <strong>text data and file name of images are stored in the sqlite file while the images are stored in the device</strong>.</p>

<p>Since my server will not keep the data, the <strong>user would not get the chat record when he / she switches to a new device</strong>. With reference to whatsapp, they allow the users to back up the chat records and images to Google Drive on a regular basis and get the data back from the drive as shown in the picture below.</p>

<p><a href="https://i.stack.imgur.com/eTJug.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eTJug.png" alt="enter image description here"></a>
When I go to my own google drive, I would find "Whatsapp" is connected to my google drive as shown below.</p>

<p><a href="https://i.stack.imgur.com/1gPxB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1gPxB.png" alt="enter image description here"></a>
I am new to the Google Drive API in Android and I would like to backup my sqlite database and images in the same way as Whatsapp does. I know there are few questions related to the back-up of sqlite database to Google Drive but it seems that it only contains part of the codes and this makes the beginner quite difficult to understand.</p>

<p>Will there be any <strong>sample projects</strong> on github, questions on stackoverflow or tutorials that would allow me learn how to <strong>back up sqlite database and images programmatically in Android</strong> step by step?</p>

<p>In additions, I am surprised to see <strong>only whatsapp is connected to my Google Drive</strong> but no more other apps, so I don't know if third-party developers would have the same access to Google Drive and complete the backup in the same way as Whatsapp.</p>
