我怎样才能删除Android应用程序谷歌驱动器文件 [英] How can I delete Google drive file on android app

查看:294
本文介绍了我怎样才能删除Android应用程序谷歌驱动器文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名开发人员,目前正在对谷歌驱动器API在Android上。

I am a developer and currently working on google drive API on android.

我可以查询和使用GoogleApiClient我的应用程序创建的文件/文件夹;然而,我无法从我的应用程序中删除的文件。

I can query and create file/folder from my app using GoogleApiClient; however, I cannot delete the files from my app.

在我google一下,我发现了谷歌最新的Andr​​oid驱动已经API不支持它。

After I google it and I found out that the newest google drive Android API has not supported it yet.

那么,还有其他的方法来从Android应用程序中删除文件?

So, are there other ways to delete files from android app?

推荐答案

的<一个href=\"http://stackoverflow.com/questions/22295903/how-to-delete-a-file-on-google-drive-using-google-drive-android-api\">answer就在这里 - SO 22295903 ,只是旧的API 。或等待,删除已<一个href=\"http://stackoverflow.com/questions/21369573/trash-delete-in-new-google-drive-android-api\">promised很快的。

The answer is here - SO 22295903, just combine with the old API. Or wait, DELETE has been promised soon.

在SO 22295903,有恢复到href=\"https://developers.google.com/drive/v2/reference/\" rel=\"nofollow\">的RESTful API 的 DriveId.getResourceId()的,并将其应用到的垃圾桶或的删除方法。但它只是一个未经考验的想法,所以不要拍我。

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.

这篇关于我怎样才能删除Android应用程序谷歌驱动器文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆