简体   繁体   English

如何在Android应用中删除Google驱动器文件

[英]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.

相关问题 如何使用Google Drive Android API删除Google Drive上的文件 - How to delete a file on google drive using Google Drive Android API 如何在Android上使用Google云端硬盘打开Goog​​le文档文件 - How can I open a google doc file with Google Drive on Android 如何将我的 Android 应用程序连接到谷歌驱动器? - How can i connect my Android app to google drive? 如何仅使用Google Android应用中的Google Drive API在Google云端硬盘上创建和编辑电子表格文件? - How do I create & edit a spreadsheet file on google drive using Google Drive APIs only from my Android app? 如何获取文件ID,以便我可以在Android上从Google Drive API下载文件? - How to get the file ID so I can perform a download of a file from Google Drive API on Android? 如何使用 Google Drive API 扫描 Android Studio 应用程序中的文档? - How can I use Google Drive API to scan a document in an Android Studio app? 如何强制Android应用程序仅使用某个帐户来使用Google Drive API(GDAA)? - How can I force an android app to use only a certain account to use google drive api (GDAA)? 如何从Android应用程序共享Google Drive文件? - How to share Google Drive file from Android app? 如何从Android应用下载存储在Google云端硬盘中的文件? - How to download a file stored on Google Drive from an Android app? 如何在Android App中创建上传文件到Google云端硬盘 - how to create upload file to Google Drive in Android App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM