제가 이제 막 안드로이드를 시작해서
아직 모르는 부분이 많습니다 ㅠ
자바에서는 잘 되던데..
안드로이드에서 구글캘린더로 접속을 해보려고 하는데
자꾸 이부분에서 막혀서 어떻게 해야할지 모르겠네요 ㅠ
--------------------------------------------------------------------------------
import java.util.Calendar;
import java.util.Date;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import com.google.gdata.client.calendar.CalendarService;
import com.google.gdata.util.AuthenticationException;
import com.google.gdata.util.ServiceException;
// import com.google.gdata.data.*;
// import com.google.gdata.data.extensions.*;
// import com.google.gdata.client.calendar.*;
.
.
.
String gLoginAddr = "aaa@gmail.com";
String gLoginPass = "bbb";
URL postUrl;
try {
postUrl = new URL("http://www.google.com/calendar/feeds/default/private/full");
CalendarService myService = new CalendarService("exampleCo-exampleApp-1");
myService.setUserCredentials(gLoginAddr, gLoginPass);
CalendarQuery myQuery = new CalendarQuery(postUrl);
myQuery.setMinimumStartTime(DateTime.parseDateTime("2011-01-23T11:00:00"));
myQuery.setMaximumStartTime(DateTime.parseDateTime("2011-01-25T18:00:00"));
CalendarEventFeed resultFeed = myService.getFeed(postUrl, CalendarEventFeed.class); <<-여기에서 ServiceException 이 발생
if (resultFeed.getEntries().size() > 0) {
...
...
}
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (AuthenticationException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (ServiceException e) {
e.printStackTrace();
}
-----------------------------------------------------------------
여기에서 왜 Exception이 발생되는 거죠??
경고부분인데..
javax.xml.parsers.ParserConfigurationException: org.xml.sax.SAXNotRecognizedException: http://xml.org.sax/features/external-parameter-entities
요부분이 의심되네요....
에러만 보면 요렇게 발생 되네요 ㅠ 이미지파일에 있어요 ㅠ