Justin,
How can I print the exception to a logcat? Is it feasible?. I tried
attaching src of gdata to android project for debugging but
compilation fails and so cannot debug.
Thanks
Manoj
On Aug 23, 12:23 am, Manu <[EMAIL PROTECTED]> wrote:
> Justing,
> It appears that the code is throwing exception in line
> myService.setUserCredentials(name, pass);
> The catch block for AuthenticationException is showing as the
> exception error message ERROR:Error connecting with login URI
> {
>
> // TODO Auto-generated catch block
> android.util.Log.v("###","ERROR:"+e.getMessage());
>
> }
>
> I/ActivityManager( 51): Removing old ANR trace file from /data/anr/
> traces.txt
>
> I/Process ( 51): Sending signal. PID: 187 SIG: 3
>
> I/Process ( 51): Sending signal. PID: 109 SIG: 3
>
> I/Process ( 51): Sending signal. PID: 163 SIG: 3
>
> I/dalvikvm( 163): threadid=7: reacting to signal 3
>
> I/dalvikvm( 109): threadid=7: reacting to signal 3
>
> I/Process ( 51): Sending signal. PID: 145 SIG: 3
>
> I/Process ( 51): Sending signal. PID: 51 SIG: 3
>
> I/dalvikvm( 145): threadid=7: reacting to signal 3
>
> I/dalvikvm( 187): threadid=7: reacting to signal 3
>
> I/dalvikvm( 51): threadid=7: reacting to signal 3
>
> I/dalvikvm( 145): Wrote stack trace to '/data/anr/traces.txt'
>
> I/dalvikvm( 109): Wrote stack trace to '/data/anr/traces.txt'
>
> I/dalvikvm( 51): Wrote stack trace to '/data/anr/traces.txt'
>
> I/Process ( 51): Sending signal. PID: 113 SIG: 3
>
> I/dalvikvm( 113): threadid=7: reacting to signal 3
>
> I/Process ( 51): Sending signal. PID: 94 SIG: 3
>
> I/Process ( 51): Sending signal. PID: 88 SIG: 3
>
> I/dalvikvm( 88): threadid=7: reacting to signal 3
>
> I/dalvikvm( 94): threadid=7: reacting to signal 3
>
> W/ActivityManager( 51): finishReceiver called but none active
>
> I/dalvikvm( 187): Wrote stack trace to '/data/anr/traces.txt'
>
> I/dalvikvm( 113): Wrote stack trace to '/data/anr/traces.txt'
>
> I/dalvikvm( 94): Wrote stack trace to '/data/anr/traces.txt'
>
> I/dalvikvm( 163): Wrote stack trace to '/data/anr/traces.txt'
>
> I/dalvikvm( 88): Wrote stack trace to '/data/anr/traces.txt'
>
> V/### ( 187): ERROR:Error connecting with login URI
>
> W/ActivityManager( 51): finishReceiver called but no pending
> broadcasts
>
> D/dalvikvm( 163): GC freed 1978 objects / 105520 bytes in 768ms
>
> D/dalvikvm( 109): GC freed 1768 objects / 99112 bytes in 837ms
>
> D/dalvikvm( 88): GC freed 798 objects / 32984 bytes in 833ms
>
> D/dalvikvm( 113): GC freed 155 objects / 14224 bytes in 634ms
>
> D/dalvikvm( 94): GC freed 187 objects / 11472 bytes in 718ms
>
> D/dalvikvm( 51): GC freed 9280 objects / 422384 bytes in 873ms
>
> Thanks
> Manoj
>
> On Aug 22, 9:21 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]>
> wrote:
>
> > What's the output from logcat?
>
> > Cheers,
> > Justin
> > Android Team @ Google
>
> > On Aug 22, 7:20 am, Manu <[EMAIL PROTECTED]> wrote:
>
> > > Hi Folks,
>
> > > Trying to insert even in google calendar but with no luck. Any
> > > pointers?
>
> > > String [EMAIL PROTECTED];
> > > String pass=xyz;
> > > myService.setUserCredentials(name, pass);
> > > URL postUrl =
> > > new URL("http://www.google.com/calendar/feeds/"+name+"/private/
> > > full");
> > > CalendarEventEntry myEntry = new CalendarEventEntry();
>
> > > myEntry.setTitle(new PlainTextConstruct("Tennis with Beth"));
> > > myEntry.setContent(new PlainTextConstruct("Meet for a quick
> > > lesson."));
>
> > > DateTime startTime =
> > > DateTime.parseDateTime("2008-08-22T15:00:00-08:00");
> > > DateTime endTime =
> > > DateTime.parseDateTime("2008-08-22T17:00:00-08:00");
> > > When eventTimes = new When();
> > > eventTimes.setStartTime(startTime);
> > > eventTimes.setEndTime(endTime);
> > > myEntry.addTime(eventTimes);
> > > Thanks
> > > Manu
>
> > > // Send the request and receive the response:
> > > CalendarEventEntry insertedEntry = myService.insert(postUrl,
> > > myEntry);
--~--~---------~--~----~------------~-------~--~----~
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 Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---