Scope: Have to update activity UI in different ways. Update depends on broadcasts received from service. Problem: There are two common ways to find out which way UI should be updated:
- register only 1 broadcast receiver but put different extras in its intent and check for them in OnReceive() method in activity;
- register broadcasts for each update command.
The 2nd ways seems to be more elegant and more understandable. But I wonder if it will consume more memory. What would you recommend? Thanks!