Widget update event

Tiwiz

Member
Licensed User
Longtime User
Hello everyone,
is it possible to change the update frequency of a widget and understand when it fires the update event?

Tiwiz
 

corwin42

Expert
Licensed User
Longtime User
With the ConfigureHomeWidget () call you can set an update frequency of the widget. Android has a limitation here that the shortest time can be 30 minutes for these automatical updates.

Another solution is to wake up your service at higher fequencies and update the widget manually. Have a look at this tutorial.
 
Upvote 0

Tiwiz

Member
Licensed User
Longtime User
Thanks,
with that I can also decide to change the update frequency after I loaded the layout? I mean, I want to make a calendar, so that, when you creates the widget, it calculates the time remaining until midnight and set the refresh interval to that time and at midnight, when it updates, I'd like to change the update frequency so that he updates again at midnight.
Do you think it's possible?

Tiwiz
 
Upvote 0
Top