I have started to use the event bus library Otto for updating the interface (activities) from different components in my Android application. For instance, when a change to a Model class is made, I post to the event bus or if an AsyncTask
has finished, I post an event to the event bus in the onPostExecute
method.
So far I am using one event bus for user interface updates. I noticed that even paused activities receive these events yet. In the documentation it states
The paused activity does not receive user input and cannot execute any code.
Which I find controversial, I can only explain this, that this code is of course executed on a different thread, but still in the activity.
My question is, does this usage result in any disadvantages? Having multiple activies being paused, executing events, updating elements of (paused) activities or ignoring them. Does this result in a noticeable overhead or can I ignore it?
Is there a different approach when one wants to use event bus for updating the interface?