| Start |
|---|
| Passing an event This example describes passing an event using the Otto Event Bus (opens new window). To use the Otto Event Bus in Android Studio you have to insert the following statement in your modules gradle file: The event we'd like to pass is a simple Java object: We need a Bus to send events. This is typically a singleton: To send an event we only need our BusProvider and it's |
| Receiving an event To receive an event it is necessary to implement a method with the event type as parameter and annotate it using Important: In order to receive that event an instance of the class has to exist. This is usually not the case when you want to send a result from one activity to another activity. So check your use case for the event bus. RemarksOtto is deprecated (opens new window) in favor of |
Read Article
https://develop.horje.com/learn/1434/reference