Google 캘린더의 이벤트를 내 안드로이드 앱으로 가져와야합니다. 어떻게해야합니까?Google 캘린더 API를 사용하여 Android 캘린더 일정을 가져 오는 방법은 무엇입니까?
여기 gdata lib가 사용되었지만 iteration 용으로 타일 대신 ID가 나타납니다.
미리 감사드립니다.
DocsService client = new DocsService("myappname");
try {
client.setUserCredentials("[email protected]",
"pwd");
URL feedUri = new URL(
"https://docs.google.com/feeds/default/private/full/");
DocumentListFeed feed = client.getFeed(feedUri,
DocumentListFeed.class);
// TextView textView = (TextView) findViewById(R.id.textView1);
String text = "";
for (DocumentListEntry entry : feed.getEntries()) {
// text += entry.getTitle().getPlainText() + "\r\n";
list.add(entry.getTitle().toString());
}
return list;
// textView.setText(text);
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ServiceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
지금까지 시도한 것을 보여주십시오. 문제에 대한 구체적인 질문을하면 큰 문제에 대한 완전한 해결책을 제시하지 않고 도움을 줄 것입니다. –
안녕하세요, 안드로이드에서 Google 캘린더 API를 사용하여 캘린더 목록을 가져올 수 있었습니까? 어떻게 할 수 있었는지 제발 공유 할 수 있을까요? 덕분에 –