将这些(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();
}
记录结果和反馈