regular refresh on widgets

896 views
Skip to first unread message

Henry Ng

unread,
Sep 23, 2010, 7:53:28 PM9/23/10
to Tasker
Hi everybody,

I want to know if Tasker can be programmed to refresh my widgets on
home screens regularly (eg S2 Calendar widgets, Android Agenda Widgets
etc as they can't auto refresh every day unless I keep them running
all the day without killing)?

Or is there any way in Tasker to refresh the home screen like when
rebooting, that it will request each widget to reload?

I tried looking around and have no idea how to do it, please help,
thanks.

Henry Ng

unread,
Sep 24, 2010, 3:20:09 AM9/24/10
to Tasker
I found below in manifest file, but don't know how to make it work in
action intent / component intent in tasker, can anyone help? thanks.

<receiver
android:label="@7F0501AC"
android:name=".widget.AgendaWidget_4_4"
>
<intent-filter
>
<action
android:name="android.appwidget.action.APPWIDGET_UPDATE"
>
</action>
<action

android:name="com.roflharrison.agenda.AgendaWidget.ACTION_WIDGET_REFRESH"
>
</action>
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@7F04000C"
>
</meta-data>
</receiver>

Pent

unread,
Sep 24, 2010, 3:29:09 AM9/24/10
to Tasker

> I want to know if Tasker can be programmed to refresh my widgets on
> home screens regularly (eg S2 Calendar widgets, Android Agenda Widgets
> etc as they can't auto refresh every day unless I keep them running
> all the day without killing)?

No, update frequency is defined by the app.

> Or is there any way in Tasker to refresh the home screen like when
> rebooting, that it will request each widget to reload?

There's a reboot thread below. That would work I guess.
Reinstalling the app :-) There may be an easier workaround but
I can't think of it.

Pent

Henry Ng

unread,
Sep 24, 2010, 4:15:24 AM9/24/10
to Tasker
Thanks. That means I cannot use the receiver intent
"com.roflharrison.agenda.AgendaWidget.ACTION_WIDGET_REFRESH" in tasker
to trigger the update, right? Sorry for i am not the expert

Pent

unread,
Sep 24, 2010, 9:02:02 AM9/24/10
to Tasker
> Thanks. That means I cannot use the receiver intent
> "com.roflharrison.agenda.AgendaWidget.ACTION_WIDGET_REFRESH" in tasker
> to trigger the update, right? Sorry for i am not the expert

Well if they're going to define their own intents for it you certainly
can :-)

Use the Misc / Action Intent action.

Pent

sam

unread,
Sep 25, 2010, 1:15:28 AM9/25/10
to Tasker
Hey,

Agenda Widget shouldn't be running in the background all the time, if
it is please contact the dev (me ;)) so we can figure out why it is
misbehaving...

If you *must* do it through a separate application then something
like: Intent updateIntent = new Intent("com.roflharrison.UPDATE_ALL");
should do the trick to update all your widgets...
com.roflharrison.agenda.AgendaWidget.ACTION_WIDGET_REFRESH will
probably only work if you pass in the widget id as an extra.

Pent

unread,
Sep 25, 2010, 4:22:45 AM9/25/10
to Tasker
Hey Sam, didn't know you were around.

OP: then this is what you need in the Action Intent:
com.roflharrison.UPDATE_ALL.

Pent

sam henwood

unread,
Sep 25, 2010, 4:33:03 AM9/25/10
to tas...@googlegroups.com
Google told me about the conversation so I thought I would be rude an butt in :)

scott zuehl

unread,
Sep 25, 2010, 5:27:29 PM9/25/10
to Tasker
I would love this too. I need to refresh the 'mobile data' widget'
because when I use tasker to enable/disable mobile data the widget
does not have the correct state.
Reply all
Reply to author
Forward
0 new messages