[英]How can I delete Google drive file on android app
I am a developer and currently working on google drive API on android. 我是一名开发人员,目前在Android上使用Google Drive API。
I can query and create file/folder from my app using GoogleApiClient; 我可以使用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. 我用google搜索之后,发现最新的google驱动器Android API尚不支持它。
So, are there other ways to delete files from android app? 那么,还有其他方法可以从android应用中删除文件吗?
The answer is here - SO 22295903 , just combine with the old API . 答案是-SO 22295903 ,只需与旧的API结合即可。 Or wait, DELETE has been promised soon .
或等待,DELETE已被承诺很快 。
In SO 22295903, there is a mention of reverting to the RESTful API . 在SO 22295903中,提到了恢复为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.
我自己还没有做过,但是我想您会使用资源ID DriveId.getResourceId()并将其应用于垃圾箱或删除方法。 But it is only an untested idea, so don't shoot me.
但这只是一个未经检验的想法,所以请不要射击我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.