I'm seeing the same problem on my G1. Only started looking into it
late last night, so haven't had much time to investigate.

John


On May 2, 8:30 pm, "[email protected]" <[email protected]>
wrote:
> Hello
>
> I have been trying different solutions, but so far none of these have
> solved my problem.
>
> I am developing an application to sync my BB BOLD 9000 Calendar with
> Google Calendar. I could authenticate to the server, but when I send
> the authentication token using the GET method I received a
> HTTP_UNAUTHORIZED message.
>
> I'm trying to fetch the list of calendars from the 
> urlhttp://www.google.com/calendar/feeds/default/private/
> full.
>
> The code looks like this
>
> HttpConnection conn = null;
> conn = HttpConnectionHelper.connect(getURL(), m_prepareRequest2);
> int status = conn.getResponseCode();
>
> if (status == HttpConnection.HTTP_UNAUTHORIZED) {
>        UiApplication.getUiApplication().invokeAndWait(new Runnable() {
>        public void run() {
>
>                 Dialog.alert("HTTP_UNAUTHORIZED");
>                 }
>        });
>
> }
>
> In the  PrepareRequest2 class I defined the Request Header like this
>
> conn.setRequestMethod(HttpConnection.GET);
> conn.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/
> CLDC-1.1");
> conn.setRequestProperty("Accept_Language", "en-US");
> conn.setRequestProperty("Authorization", "GoogleLogin auth=" + (String)
> _storeAuth.getContents());
>
> I found the HttpConectionHelper class 
> here:http://code.google.com/p/gcsync/source/browse/trunk/gcsync/gcSyncCore...
> which is a mofidied version of this 
> onehttp://java.sun.com/developer/J2METechTips/2000/tt1218.html
>
> I hope someone can help me, and sorry about my english... I'm from
> Venezuela.
>
> Thanks
>
> w

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to