I'm having an issue with this one. My app has some asynctasks that are execute by an alarmmanager (like an alarm clock). I want that when this task is running, if the user is using the mainactivity of the app, a indeterminate progress bar shows.
I saw this post : android asynctask sending callbacks to ui
That uses an interface. But as it's not my activity which execute the task, I can't register the listener in the asynctask
.
So, I'm stuck. Any ideas?