问题
Android sample code has trash() method (see same code github)
DriveFile file = Drive.DriveApi.getFile(getGoogleApiClient(), result.getDriveId());
file.trash(getGoogleApiClient()).setResultCallback(trashCallback);
I use the latest google play service library (updated on March 17).
But DriveFile class does not contain trash() method.
How to trash file?
Must use Google-Drive-SDK for java?
回答1:
It looks like it was an OOPS. The code on Github disappeared with a commit msg "remove trashing activity". But at least it looks like it's coming soon. Meanwhile, I stick with this SO 22295903 solution. Messy, but at least something.
来源:https://stackoverflow.com/questions/22703040/drivefile-trashgoogleapiclient-method-is-gone