简体   繁体   English

如何使用Google Drive Android API获取Drive_FILE_ID

[英]how to get Drive_FILE_ID using Google Drive android API

I am creating an application which uses user's Google Drive space to stores application's backup. 我正在创建一个使用用户的Google云端硬盘空间来存储应用程序备份的应用程序。 As i am a beginner, i am having trouble understanding Google Drive android API. 作为我的初学者,我在理解Google云端硬盘android API时遇到了麻烦。

I check several examples android Quick Start and Google Drive android API documentation but didn't got any proper solution. 我查看了几个示例android快速入门Google Drive android API文档,但没有任何适当的解决方案。

My application simply needs to perform following operations- 我的应用程序只需要执行以下操作-

  • Create a file in a particular folder on Google Drive 在Google云端硬盘上的特定文件夹中创建文件
  • download that file for modification 下载该文件进行修改
  • modify the content and then upload it back on Google Drive 修改内容,然后将其上传回Google云端硬盘

The getResourceId and getDriveId methods of Google Drive Android API are Unpredictable . Google Drive Android API的getResourceId和getDriveId方法是不可预测的

The resource id is not available until the newly created file is committed to the server so GoogleApiClient needs to be reconnected. 只有将新创建的文件提交到服务器后,资源ID才可用,因此需要重新连接GoogleApiClient。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google Drive API - Android - 如何获取驱动器文件 ID? - Google Drive API - Android - How to obtain a drive file id? 如何使用Google Drive Android API删除Google Drive上的文件 - How to delete a file on google drive using Google Drive Android API Java Google Drive Android API,上传后获取文件ID - Java Google Drive Android API, get file ID after upload 获取Google Drive API Android的资源ID - Get Resource Id For Google Drive API Android 如何获取文件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 v3 获取 Google 电子表格文件 ID? - How can I get Google spreadsheets file Id by using Google drive API v3? 使用Android中的Google Drive API获取在Google Drive上创建的文件的大小 - Get size of file created on Google drive using Google drive api in android 如何使用 Google Drive API 从 android 将加密的图像文件上传到 Google Drive - How to upload encrypted image file on google drive from android using Google Drive API 谷歌驱动器配额使用android api驱动器 - google drive quota using android api for drive 如何使用Google Drive Android API更改在Google云端硬盘中创建的文件夹或文件的权限? - How to change permission of folder or file created in Google Drive using Google Drive Android API?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM