English 中文(简体)
页: 1
原标题:Google calendar: how to access it on android

如何最佳地使 go雨的历程在现在起步?

我发现以下方式:

google-api-java-client - It s only an alpha. Authenticating, getting calendar list works, but updating calendar crashes in sample. +no documentation and bad sample codes anyway.

hackity hackvert engeneering - well (propable) not futuresu.

谷歌数据api——就我所知,它不支持/处理 and。

是否有我所忽略的替代办法? 是否有任何工作实例?

最佳回答
问题回答

Have you looked at the Data API Developer s Guide: Java? You can also work directly with HTTP request/response, if things you want/need aren t supported in the Java API.

我先亲自使用贾瓦·安普森,但我与吉大港山区直接合作,认为这很简单。

我认为这是一个众所周知的问题,但还不清楚。 审视所有问题和答案,但似乎有两种选择:

  • 在你的答复中使用你提到的 ha(并非完全建议),因为正如你所说的那样,没有保证同样的trick子将来会发挥作用。 为了使之在froyo下运行,已经做了一些更新,见here

  • http://code.google.com/p/google-api-java-client/“rel=“nofollow”http://code.google.com/p/google-api-java-client/。 参考网站项目说明

Written by Google, this library is a flexible, efficient, and powerful Java client library for accessing any HTTP-based API s on the web. It is the recommended library for accessing Google API s based on REST or JSON-RPC.

......

将这些(Calendar-2.1,client 1.0, 核心1.0) jar文档列入我们的申请。 这两份文件(guava-11.0.2和jsr305)可在数据夹中查阅。

以及本日历中恢复活动守则

Declare globally your calendar id and password

可以通过在facebook.com/rajivbawa22上使用这一地址来读书。 更高级的教学

    String userName = "example@gmail.com"; // put here your gmail id 

String userPassword = "12345-example ";// put here your gmail password 

但是,确保你在Selix和Adrea都有账户。

页: 1

        CalendarService myService = new CalendarService("com.demo.calendar");

        myService.setUserCredentials(userName, userPassword);
        // Send the request and print the response
        URL feedUrl = new URL(
                "https://www.google.com/calendar/feeds/"+userName+"/private/full");
        // "https://www.google.com/calendar/feeds/default/owncalendars/full");
        Log.e("", "Calendar1========");
        CalendarFeed resultFeed = myService.getFeed(feedUrl,
                CalendarFeed.class);
        Log.e("", "Calendar2*********" + resultFeed);
        for (int i = 0; i < resultFeed.getEntries().size(); i++) {

            Log.e("", "========" + resultFeed.getEntries().size());

            CalendarEntry entry = resultFeed.getEntries().get(i);

            Log.e("", "**********" + entry.getTitle().getPlainText());

        }
    } catch (Exception e) {

        e.printStackTrace();
    }

记录结果和反馈





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签