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.
DriveFile.trash(GoogleApiClient) method is gone
Domanda
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?
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow