问题
I am a developer and currently working on google drive API on android.
I can query and create file/folder from my app using GoogleApiClient; however, I cannot delete the files from my app.
After I google it and I found out that the newest google drive Android API has not supported it yet.
So, are there other ways to delete files from android app?
回答1:
The answer is here - SO 22295903, just combine with the old API. Or wait, DELETE has been promised soon.
In SO 22295903, there is a mention of reverting to the RESTful API. I have not done it myself, but I think you would take the resource ID, DriveId.getResourceId() and apply it to the trash or delete method. But it is only an untested idea, so don't shoot me.
来源:https://stackoverflow.com/questions/22376380/how-can-i-delete-google-drive-file-on-android-app