I’m building a messaging app where users can send texts and share pictures. The app saves message data and image filenames in a local database, but the actual photos are kept on the phone storage.
Since I don’t store anything on my own servers, users lose all their chat history when they get a new phone. I want to add a backup feature similar to what WhatsApp offers. They let users automatically save their chats and media to Google Drive and restore everything later.
I’m completely new to using Google Drive APIs in Android development. I’ve found some posts about backing up databases to Google Drive, but they only show small code snippets. As a beginner, I need more complete examples to understand the whole process.
Can anyone point me to complete tutorials, sample projects on GitHub, or step-by-step guides that show how to:
- Upload database files to Google Drive programmatically
- Backup image files along with the database
- Handle the authentication and permissions properly
Also, I noticed that WhatsApp appears as a connected app in Google Drive settings. Can regular developers like me get the same level of integration, or is this something special that only big companies can do?