안드로이드 개발 질문/답변
(글 수 45,052)
calendarService = new CalendarService(m_appname);
feedUrl = new URL("https://www.google.com/calendar/feeds/default/allcalendars/full);
calendarService.setUserCredentials(m_userid, m_password);
calendarFeed = calendarService.getFeed(feedUrl, CalendarFeed.class);
Log.i("hty2242", "Calenar start:" + calendarFeed.getEntries().size());
코드의 내용은 참 간단합니다
CalendarService 를 이용해여 아이디와 패스 워드로 인증하여
켈린더에 기록되어 있는 정보를 가지고 오는 소스인데요..
코드상에서 오류는 발생하지 않습니다...
비밀번호 틀렸을 경우
02-24 17:32:08.359: W/System.err(7740): com.google.gdata.client.GoogleService$CaptchaRequiredException: Captcha required
비밀번호 정상입력
02-24 17:33:27.621: W/System.err(7801): com.google.gdata.client.GoogleService$InvalidCredentialsException: Invalid credentials
을하였을 경우의 xml warn 메세지만 나옵니다..
현재 간단한 activity 에 만 내용이 추가 되있고
그외 구글 인증 관련은 없습니다..
필드의 사이즈가 0으로 출력이 되어 켈린더의 정보를 가지고 올수 없는것으로 판단됩니다...
이러한 연동을 해보신분이 계시면...조언좀 부탁드립니다 ㅠㅠ