Adding custom properties using the new Google Play Services drive api -
i add custom properties files , folders within android application. cannot find way using new google play services drive api. missing api? using "old" drive sdk in 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 avoid mixing drive sdk , google play services drive api in app...
at point android google drive api not support custom properties.
currently these metadata options available through android google drive api:
https://developer.android.com/reference/com/google/android/gms/drive/metadatachangeset.builder.html
Comments
Post a Comment