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 <[email protected]> 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 --~--~---------~--~----~------------~-------~--~----~ 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

