Widget refresh problem
The weather temperature in Widget does not auto refresh. Every time the Widget has to be tapped to open the app only when the temperature gets refreshed. Please help to resolve the issue.
@arminha can you look into this issue. Its a minor fix maybe.
I was not able to find the cause of this. I think the UpdateWeatherService is not scheduled properly, but can't figure out why. This needs some more debugging
Any pointer. I suspect sendWidgetRefresh() method in UpdateWeatherService.java
I would first check if onHandleIntent() on the UpdateWeatherService is executed at all.
The UpdateWeatherService should be called by the Android AlarmManager about every hour (not exactly, see AlarmManager.setInexactRepeating). The UpdateWeatherService is registered with the AlarmManager in AbstractWeatherWidgetProvider.
Sometimes when I encountered a widget update problems before, removing and adding the widget fixed it. This would execute the code above and register the UpdateWeatherService properly again.
Only adding widget is executing the alarmmanager only once. Else not. On handleintent () really not effective. It's only working when we hit the update button. But alarmmanager is not at all working.