I would like to add custom properties to files and folders from within my Android application. I cannot find any way to do this using the new Google Play Services Drive API. Is this missing from the API? Using the "old" Drive SDK I could do this in the following way:
private static Property insertProperty( Drive service, String fileId, String key, String value, String visibility) { Property newProperty = new Property();
newProperty.setKey(key);
newProperty.setValue(value);
newProperty.setVisibility(visibility);
try {
return service.properties().insert(fileId, newProperty).execute();
} catch (IOException e) {
System.out.println("An error occurred: " + e);
}
return null;
}
I would like to avoid mixing the Drive SDK and the Google Play Services Drive API in my app...