Events being received multiple times - Greenrobot eventbus

I am using Greenrobot's EventBus in my app, and it works fine.

However, if I press the back button to close the app, then restart the app instantly I seem to receive the event twice. If I then do so again, I will receive it three times and so on.

I am checking with logs and debugging to see if I have multiple instances of any classes, or if I am registering multiple times, but I can't see any extra classes and using isRegistered returns false.

Any ideas?



Are your register/unregister calls paired correctly? E.g. if you register() in Activity.onResume(), are you calling unregister() in Activity.onPause().

Closing all activities does not kill your process. I.e. all registered classes are still there, you have to explicitly clean up and unregister from the event bus, or reuse them when the Activity comes back.

Need Your Help

Have problems installing mod_python

django apache deployment apache2 mod-python

I seem to have some problems installing mod_python with apache.

File size

In Form1 i have a Textbox1, in this textbox i have the loaction of a file "C:\folder\file.iso"