I have to get events from Google calendar into my own Android apps. How can I do this?
here I am used gdata lib , but in the for iteration i getting some id instead of tile.
Thanks in advance.
DocsService client = new DocsService("myappname");
try {
client.setUserCredentials("example@gamil.com",
"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();
}