日食的Andr​​oid的Java编程中的谷歌日历API [英] Programming google calendar API within eclipse android java

查看:186
本文介绍了日食的Andr​​oid的Java编程中的谷歌日历API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我的问题是,我不能确定如何开始2周后,研究编程谷歌日历到我的应用程序,阅读大量的网站和谷歌之后的步骤。我相信这是由于不良和部分过时的谷歌日历的API文档。

So my problem is I am unsure how to start programming a google calendar into my app after 2 weeks of research, reading numerous websites and following google steps. I believe this is due to bad and partially outdated google calendar api documentation.

我做了什么:


  • 安装谷歌插件,Android版

  • 在谷歌账户中注册的项目与谷歌

  • 去谷歌控制台和创建客户端ID

  • 加入我的项目名和SHA1指纹号

所以,现在我应该能够使用谷歌日历服务?
我不能让我的身体的Andr​​oid设备被蚀4.2这是一个单独的问题予以确认。当它连接我应该看?我如何操纵谷歌日历?我应该在日历视图对象中添加或应在实际日历上来?我真的很迷茫,没有发现任何最新的即是一个很好的例子在网络上。没有人确切地描述了多么有用此API以及是否在日历中显示的排序code,你应该使用的。我真的希望有人用过去的经验和这个API的向上的最新知识。

So now I should be able to use google calendar services? I cant get my physical android device to be recognised by eclipse 4.2 which is a separate problem. When it is connected what should I see? How do I manipulate the google calendar? Should I be adding in a 'calendar view' object or should the actual calendar come up? I am really confused and have not found anything up to date on the web that is a good example of this. No one has described exactly how useful this api is and whether the calendar shows up or the sort of code that you should use. I really want someone with past experience and up-to-date knowledge of this api.

推荐答案

只是想我要回答这个问题对于那些谁是真的卡住,不知道从哪里开始,好像我是因为有非常贫穷的指示在那里。

Just thought I would answer this for those who are really stuck and dont know where to start like I was as there are very poor instructions out there.


  1. 首先进入该链接 - > http://developers.google.com/google-应用程序/日历/ 并遵守所有设置与谷歌项目的说明。

  2. 一旦你到配置您的应用程序,你很可能会被卡住为code不起作用

  3. 进入该链接 - > http://mercurial.selenic.com/downloads/ 。并下载mercurical,这样你可以下载谷歌的例子,例如项目日历。

  4. 键入CMD进入你的开始菜单和pressing输入(适用于Windows)打开命令窗口

  5. 导航到这个链接 - > /$c$c.google.com/p/google-api-java-client/source/checkout?repo=samples(记住HTTP:没有足够的信誉])

  6. 然后复制并粘贴汞克隆//$c$c.google.com/p/google-api-java-client.samples/(记住HTTP:没有足够的信誉])到终端窗口。等待它完成下载(需要几分钟)

  7. 看看你的文件下载到路径:例如,C:\\用户>

  8. 进入该目录在您的文件夹,您将有例子的应用程序。

  1. Firstly go to this link -> http://developers.google.com/google-apps/calendar/ and follow all the instructions to set up your project with google.
  2. Once you get to "Configure your app" you are likely to be stuck as the code does not work
  3. Go to this link -> http://mercurial.selenic.com/downloads/. and download mercurical so that you can download example google projects eg the calendar.
  4. Open your command window by typing 'cmd' into your start menu and pressing enter (for windows)
  5. Navigate to this link -> /code.google.com/p/google-api-java-client/source/checkout?repo=samples (Remember http: [dont have enough reputation])
  6. Then copy and paste 'hg clone //code.google.com/p/google-api-java-client.samples/' (Remember http: [dont have enough reputation]) into the terminal window. Wait for it to finish downloading (will take a few minutes)
  7. Look at the path you downloaded the file to: eg, c:\Users>
  8. Go to that directory in your folders and you will have the example apps.

您将不得不将其导入到Eclipse或prefered环境。而现在至少可以看到code,并找出如何从那里使用它!只是希望能某处一直还跟开始哥们了与这些简单的步骤的一个人。

You will have to import it into Eclipse or your prefered environment. And now at least you can see code and figure out how to use it from there! Just wish someone somewhere could of been kind enough to start a buddy off with these simple steps.

这篇关于日食的Andr​​oid的Java编程中的谷歌日历API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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