Android应用:上传/下载谷歌驱动器 [英] Android app : Download/Upload Google Drive

查看:175
本文介绍了Android应用:上传/下载谷歌驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的目标很简单:我正在开发Android应用程序,并希望将其上传于谷歌云端硬盘文件,我也希望能够读取它们的属性,并下载它们。那么,有没有一个解决方案,在那里,没有去precated JSON对象使用,并且可以做到这一点?

My goal is simple : I am developing an Android app and want to upload files on Google Drive and I also want to be able to read their properties and to download them. So is there a solution out there that doesn't use deprecated JSon objects and that can do it?


  • 连接

  • 查看文件属性(修改日期)

  • 下载

  • 上传

感谢您。

推荐答案

您将不得不使用REST API的通过的谷歌驱动器SDK

You will have to use the REST API's provided by the Google Drive SDK.

有关连接,您可以使用OAuth 2.0:
https://developers.google.com/drive/about-auth

For connecting, You can use OAuth 2.0 : https://developers.google.com/drive/about-auth

有关检测whther文件是否已更改见:
https://developers.google.com/drive/manage-changes

For detecting whther a file has changed see: https://developers.google.com/drive/manage-changes

有关下载文件,请参阅:
https://developers.google.com/drive/manage-downloads

For downloading files, see: https://developers.google.com/drive/manage-downloads

有关上传文件,请参阅:
https://developers.google.com/drive/manage-uploads

For uploading files, see: https://developers.google.com/drive/manage-uploads

有关如何正确使用REST API在Android的信息,请参见:

For info on how to use REST API's in Android correctly, see:

请与Android 的HTTP请求

宁静的API服务

希望这有助于.....

Hope this helps.....

这篇关于Android应用:上传/下载谷歌驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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