Scope of application. It is necessary to update the user interface of actions in different ways. The update depends on the transmissions received from the service. Problem. There are two ways to find out which interface should be updated:
- register only 1 broadcast receiver, but optionally put various additional functions and test them in the OnReceive () method in action;
- Log broadcasts for each update team.
The 2nd method seems more elegant and understandable. But I wonder if it will consume more memory. What would you suggest? Thank!
source
share