I have a widget that displays the current date among other things. However the widget only gets updated when a user performs an action in the main activity.
How would I go about forcing the widget to update the next time the phone is turned on after midnight to reflect the new date?
I understand I may need an AlarmManager but I’m not clear on the parameters. And do I put it in my main activity and have it call the method that calls update on my widget?
in a similar style, I have a service that I want to run at a certain time. when this service has done it’s work it then updates my widget and stops itself (the service). here is a snippet of how I launch my service at a specified time
I hope this is near enough for you to be able to solve your problem