I have created an application in Android studio which store users information and other data in sqlite database. I want to give user an option to create the backup of their data(upload the database.db file) on Google Drive and restore (download the database.db file) from Google Drive.
here is a perfect example for what you need. Go through the project and you will be able to do backup/restore of your db.