Hi

Use instead of m5 the older version (m3-rc37)

On Mar 12, 1:04 pm, Andrew <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a question,
>
> client.getAuthToken() method cannot find in
> android-sdk_m5-rc14_linux-x86 sdk.
>
> my code:
>
> public boolean isValid(String username, String password) {
>         try {
>             GDataClient dataClient = new JakartaGDataClient(true);
>             GDataParserFactory factory = new
> XmlCalendarGDataParserFactory(new
>                     AndroidXmlParserFactory());
>             String url = "http://www.google.com/calendar/feeds/"; +
>                     dataClient.encodeUri("username") + "/private/
> full";
>             CalendarClient client = new CalendarClient(dataClient,
> factory, url);
>             String authToken = client.getAuthToken(username,
> password);
>             System.out.println("authToken : " + authToken);
>         } catch (AuthenticationException e) {
>             // e.printStackTrace();
>             return false;
>         } catch (Exception e2) {
>             // e2.printStackTrace();
>             return false;
>         }
>         return true;
>
> }
>
> Thanx,
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to