Hi

I have the same problem so thanks very much for the post...

Could you explain how the onHandleIntent method works please.

I have the appWidgetId in the service so I just need the way to update
that specific widget.

Any help would be very much appreciated.

Regards

Lyndon

On Jan 3, 4:17 pm, theSmith <chris.smith...@gmail.com> wrote:
> To follow up on my own question, heres how I did it.
>
> I went from a service to an IntentService and in the onHandleIntent
> (Intent intent) I handle the update requests.
>
> To get the individual id's I put them as an extra in the intent in the
> onRecieve() method in the widget, then fire them off to the
> IntentService with context.startService(i).  Everything is working
> perfectly now.
>
> -theSmith
>
> On Jan 1, 10:12 pm, theSmith <chris.smith...@gmail.com> wrote:
>
>
>
> > Here is my issue, I want to be able to update a specific
> > AppWidgetProvider (home screen widget) from a custom service class.  I
> > have to build the remote view in the service because I'm also doing
> > some networking in there, which takes some time.
>
> > The problem is that I can't figure out how to update a specific widget
> > (individual widgets can have different update intervals, using the
> > alarm manager).
>
> > If I wanted to do it from the onUpdate of the AppWidgetProvider I
> > could just call appWidgetManager.updateAppWidget(appWidgetId,
> > remoteView);
>
> > Does anyone have any experience with this or any suggestions?
>
> > -theSmith- Hide quoted text -
>
> - Show quoted text -
-- 
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

Reply via email to