Google drive to back up and restore database and shared preferences of Android application
问题 I need to create a backup of my application which would include creating a backup of 2 databases and also the shared preferences using Google drive API. I was able to get the authentication done for the app and also create a new folder in Drive using the following code: public class MainActivity2 extends BaseDemoActivity { DriveId folderId; @Override public void onConnected(Bundle connectionHint) { super.onConnected(connectionHint); MetadataChangeSet changeSet = new MetadataChangeSet.Builder(