Reputation: 113
I have implemented data backup using google drive android API in my application. The backup data is being saved to "AppFolder". The data is being saved and retrieved properly. But, the file is not shown when I select "Backups" section in the associated google drive account.
I have set the parameters like below before saving/creating the backup data:
String filename = preferences.getString(Constants.USERNAME, Constants.USERNAME_DEF) + "__" + DataHelper.DATABASE_NAME;
MetadataChangeSet changeSet = new MetadataChangeSet.Builder()
.setTitle(filename)
.setMimeType("application/x-sqlite3")
.setStarred(true).build();
Drive.DriveApi.getAppFolder(mGoogleApiClient).createFile(mGoogleApiClient, changeSet, driveContents).setResultCallback(new ResultCallback<DriveFolder.DriveFileResult>() { ... });
Is there any parameter needed to be added so that the saved data is shown in Backups section in google drive?
Upvotes: 2
Views: 1046
Reputation: 17651
This should shed some light in your dilemma:
What is the App Folder?
The App Folder is a special folder that is only accessible by your application. Its content is hidden from the user and from other apps. Despite being hidden from the user, the App Folder is stored on the user's Drive and therefore uses the user's Drive storage quota. The App Folder can be used to store configuration files, temporary files, or any other types of files that belong to the user but should not be tampered with.
Upvotes: 0