【问题标题】:How do you get the description of a CalendarEntry using the google-api-java-client API on Android?如何在 Android 上使用 google-api-java-client API 获取 CalendarEntry 的描述?
【发布时间】:2011-06-17 20:29:10
【问题描述】:

我在 Android 上使用适用于 Java 的 Google API 客户端库来检索公共 Google 日历条目:

http://code.google.com/p/google-api-java-client/

我能够让 Android 日历示例正常工作:

http://samples.google-api-java-client.googlecode.com/hg/calendar-v2-atom-android-sample/instructions.html

我制作了一个示例 Android 应用程序,它可以很好地提取公共 Google 日历。 CalendarEntry 类具有“标题”和“摘要”字段。在我的测试中,“标题”字段包含事件的名称,“摘要”字段包含存储在 Google 服务器上的位置和时间数据。

您如何获取存储在 Google 服务器上的条目描述(不仅仅是条目名称、时间和地点)?

【问题讨论】:

  • 我也一直在努力使用 Google 提供的这个示例。我没有给你的答案,但既然看起来你比我走得更远,你能看看我在这里找到的问题吗...stackoverflow.com/questions/6403293/…

标签: android calendar google-api-java-client


【解决方案1】:

不确定我是否理解您的问题,但在Google Calendar Api 中,您可以使用event.getDescription(),请参阅here

【讨论】:

  • 感谢您的回复 rior,但我没有使用 Google Calendar API。我正在使用 Google API 客户端库;查看我的第一个链接。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-01-28
  • 1970-01-01
  • 2013-05-07
  • 2018-05-08
  • 1970-01-01
  • 2011-08-12
相关资源
最近更新 更多