How can I delete Google drive file on android app

旧街凉风 提交于 2019-12-11 16:06:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!