The service starts now, i forgot to declare it in the manifest... But still, the onHandle function isn't triggered.. Trying to test the TwiterWidget example i only got a fullscreen app, couldn't see the widget anywhere. Anyway, i'm sure i'm missing some little thing, i just can't pinpoint it :) As a suggestion, this stuff (explicit event handling inside your own widget) should be included in official documentation, and maybe simplified in the long-term since i find it very important.
On Tue, Jun 9, 2009 at 8:10 PM, Teo <teomina...@gmail.com> wrote: > Hmm same behavior, for some reason it seems that the service doesn't even > start... > > > On Tue, Jun 9, 2009 at 8:01 PM, Mark Murphy <mmur...@commonsware.com>wrote: > >> >> >> > Thanks for the example, it cleared some things up. But i'm still trying >> to >> > find the right PendingIntent to attach, with no success, nothing >> happens. >> > I >> > made a service after the same model, and my line now looks like this: >> > rv.setOnClickPendingIntent(R.id.widgetLeft, PendingIntent >> > .getActivity(context, 0, new Intent(context, >> > WidgetService.class), 0)); >> > >> > Nothing in the service gets launched according to the debugger... >> >> If nothing else, PendingIntent.getActivity() won't talk to a service. You >> probably want PendingIntent.getBroadcast(). >> >> -- >> Mark Murphy (a Commons Guy) >> http://commonsware.com >> _The Busy Coder's Guide to Android Development_ Version 2.0 Available! >> >> >> >> >> >> > > > -- > Teo (a.k.a. Teominator a.k.a. Teodor Filimon) > site www.teodorfilimon.com | blog www.teodorfilimon.blogspot.com > GMT +2 > -- Teo (a.k.a. Teominator a.k.a. Teodor Filimon) site www.teodorfilimon.com | blog www.teodorfilimon.blogspot.com GMT +2 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---