How to use google drive api in my android application?

坚强是说给别人听的谎言 提交于 2019-12-27 00:55:08

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/32820059/how-to-use-google-drive-api-in-my-android-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!