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.
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?