I think that only works though if the service is an inner class of the
AppWidgetProvider...

On Oct 2, 12:32 am, Paul Turchenko <[email protected]> wrote:
> Now that you have a RemoteViews, you can send data to widget. Make
> necessary calls on RemoteViews before calling manager.updateAppWidget
> (). This approach should 100% work.
>
> On Oct 2, 2:42 am, sdphil <[email protected]> wrote:
>
> > I'm trying to do this in my service, and it never makes any calls into
> > my app widget...
>
> > @Override
> > public void onStart(Intent intent, int startId) {
> >     super.onStart(intent, startId);
>
> >     Context context = (Context) this;
> >     String packageName = context.getPackageName();
>
> >     RemoteViews updateViews = new RemoteViews( packageName,
> > R.layout.appwidget);
>
> >     ComponentName thisWidget = new ComponentName(this,
> > MyAppWidgetProvider.class);
>
> >     AppWidgetManager manager = AppWidgetManager.getInstance(this);
>
> >     manager.updateAppWidget(thisWidget, updateViews);
>
> > }
>
> > On Oct 1, 3:10 pm, Paul Turchenko <[email protected]> wrote:
>
> > > Just retrieve appwidgetprovider and use RemoteViews to do that
>
> > > On Oct 2, 12:19 am, sdphil <[email protected]> wrote:
>
> > > > ping.  any thoughts?
>
> > > > On Sep 30, 7:01 pm, sdphil <[email protected]> wrote:
>
> > > > > From a service that's running, how do I send an event or an intent to
> > > > > an app widget that is just sitting their idle...
>
> > > > > tia.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to