I am using Green robot event bus in Android
I am calling all events using EventBus.getDefault().post and onStop I am calling EventBus.getDefault().unregister(this); in my Activity. However once I press back and reopen the application, on a single event post, multiple onEvent()'s are received. Has anyone else faced this issue?
@Override
protected void onStart() {
super.onStart();
getBus().register(this);
}
@Override
protected void onPause() {
getBus().unregister(this);
super.onPause();
}
@Override
protected void onStop() {
getBus().unregister(this);
super.onStop();
}
protected EventBus getBus() {
return EventBus.getDefault();
}