gdata日历示例代码中的SecureSAXParserFactory错误

时间:2010-07-01 09:11:02

标签: android calendar gdata-api

我目前正在使用gdata vesion 1.41.3和android api level 3。 我正在尝试使用gdata的日历功能。我的源代码是]

try {

   CalendarService myService = new CalendarService(
     "exampleCo-exampleApp-1");
   myService.setUserCredentials("xxx@gmail.com", "xxx");

   // Send the request and print the response
   URL feedUrl = new URL(
     "http://www.google.com/calendar/feeds/default/allcalendars/full");
   CalendarFeed resultFeed = myService.getFeed(feedUrl,
     CalendarFeed.class);
   System.out.println("Your calendars:");
   System.out.println();
   for (int i = 0; i < resultFeed.getEntries().size(); i++) {
    CalendarEntry entry = resultFeed.getEntries().get(i);
    System.out.println("\t" + entry.getTitle().getPlainText());
   }
  } catch (Exception e) {
   Log.e("", e.toString());
  }

抛出以下异常的代码:

com.google.gdata.util.common.xml.parsing.SecureGenericXMLFactory$SecureSAXParserFactory

需要帮助???

2 个答案:

答案 0 :(得分:2)

到目前为止,Android上不支持gdata。 http://code.google.com/p/android-gdata/

没有可用的数据库。

答案 1 :(得分:0)

您可以使用GoogleApiJavaClient吗? 看到这里原因: http://code.google.com/p/gdata-java-client/wiki/MigratingToGoogleApiJavaClient

在这里寻找更多资源 http://code.google.com/p/google-api-java-client/