Vksingh
Vksingh

Reputation: 43

How to add list file of SD card to set meta data set change

How to add list of SD card file to meta data set change on Google Drive

Upvotes: 0

Views: 74

Answers (1)

adjuremods
adjuremods

Reputation: 2998

First, you have to upload the files from the SD Card to Drive. After that, you can retrieve the list of files from Drive.

Setting the metadata to the DriveFile can be done by using MetadataChangeSet. After setting the appropriate values, you should call [DriveResource.updateMetadata](https://developers.google.com/android/reference/com/google/android/gms/drive/DriveResource.html#updateMetadata(com.google.android.gms.common.api.GoogleApiClient, com.google.android.gms.drive.MetadataChangeSet)). More information about it can be found on the documentation

Upvotes: 1

Related Questions