如何在我的Android应用程序中使用谷歌驱动器API? [英] How to use google drive api in my android application?

查看:306
本文介绍了如何在我的Android应用程序中使用谷歌驱动器API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的应用程序数据上传到Google云端硬盘。因此,我必须将Google云端硬盘集成到我的应用程序中,但找不到适当的解决方案或源代码来执行此操作。因此,如果任何人有完整的代码如何使用谷歌驱动器到Android应用程序比请帮助我。

解决方案

有点批评。如果你这样问一个问题('给我看魔术技巧'),它会立即得到反对票,清除。它只表明你没有做你的功课。

另一种可能性是你开始并完全失去(在那里)。如果是这种情况,让我给你一个方向:


  1. 研究Android可用的2个API, REST Api和 GDAA 。他们做的事情基本上是一样的,这个选择很大程度上取决于你的应用程序的需求。

  2. 决定使用哪一个。要特别注意GDAA仅支持FILE范围的事实,限制应用程序可以看到的文件/文件夹。重量优势/劣势。

  3. 研究/使用您选择的API的演示代码。这些链接位于您已经研究过的文档中(上面的第1点)。如果Google官方不满足您的需求,您也可以查看这两个API的基本CRUD实现此处(REST )此处(GDAA)

正如你所看到的,你离任何地方都有几周的时间。不要指望任何人在这里为你做这项工作。

好运

I want to upload my application data to google drive.So I have to integrate Google Drive into my application, but I can't find any proper solution or source code for do that thing. So please if any one have full code of how to use Google Drive into android application than please help me.

解决方案

First, a bit of critique. If you ask a question this way ('show me the magic trick'), it will get promptly down-voted, purged. It only shows you did not do your homework.

The other possibility is that you are starting and being totally lost (been there). If this is the case, let me give you a direction:

  1. Study the 2 APIs available to Android, the REST Api and the GDAA. They do essentially the same thing, the selection very much depends on your app's needs.
  2. Make decision which one to use. Pay special attention to the fact the GDAA supports only FILE scope, limiting the files/folder your app can see. Weight advantages/ disadvantages.
  3. Study / play with the demo code for the API you selected. The links are in the docs you already studied (point 1 above). In case the official Google did not meet your needs, you may also look at the basic CRUD implementations of the 2 APIs here(REST) and here(GDAA)

As you'll see, you are weeks away from getting anywhere. And don't count on anybody here to do the work for you.

Good Luck

这篇关于如何在我的Android应用程序中使用谷歌驱动器API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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