I have registered event bus in one activity like - EventBus.getDefault.register(this);
But Now i want to unregister it in to another activity.So how to achieve it?
I have registered event bus in one activity like - EventBus.getDefault.register(this);
But Now i want to unregister it in to another activity.So how to achieve it?
But Now i want to unregister it in to another activity.
You cannot unregister another activity because it is not registerd. You must unregister the same object you registered. Usually onResume()
/onPause()
are good place to deal with it.