Video is ready, Click Here to View ×

Learn about Green Robot’s EventBus and why you should be using it in all your Android applications.

The observer pattern allows us accomplish something extraordinary in software architecture. What that allows us to accomplish is low coupling, high cohesion. What that means is, we are able to avoid connecting all of our class instances together via references in code, but maintain a system of these objects that communicate via an event bus system. In other words, instead of passing references of objects back and forth to allow us to make a callback on a parent activity, for example, we can use EventBus instead. You’ll begin to understand this better when we go through the code in Android Studio.

Example Code:

EventBus Android Tutorial – Using the Observer Design Pattern

Video is ready, Click Here to View ×

Green Robot’s EventBus

EventBus: Events for Android

Video is ready, Click Here to View ×

More information:
Your armorer: