For example, i do a login operation in activity B and want to update the ui in activity A. How to do that?
Until now, the method i use is to register a broadcast receiver in activity A and unregister it in onDestroy
. It works fine, but android always give a warning about leaking broadcast.