I'm using a BroadcastReceiver
to check for new data on the server every 5 minutes. I would like to set a kind of progress icon in my MainActivity
's action bar every time a check is performed - how do I do that from the BroadcastReceiver
?
Essentially I just want to use the setBackgroundResource()
but I don't know how to do that from my BroadcastReceiver
.
Edit: I'm starting the alarm in activity other than the activity I would like to update the progress bar and the BroadcastReceiver
is in the separate class.