On September 14th, 2017, we published revised versions of our Privacy Policy, Terms of Service and Website Use Policy and published a Cookie Policy. Your continued use of Lynda.com means you agree to these revised documents, so please take a few minutes to read and understand them.

Send and receive messages with EventBus

Keyboard Shortcuts

You learned how to send and receive local broadcast messages using components of the Android SDK and the support libraries, but there are other solutions available for moving information around the layers of an Android app, in the form of 3rd party open source libraries. Learn about one of these, a library named EventBus, from a company named Green Robot.

- [Instructor] I previously described how to send…and receive both system and local broadcast messages…using components of the Android SDK…and the Support Libraries,…but there are other solutions available…for moving information around the layers of an Android app…in the form of third party opensource libraries.…I'm going to describe one of these.…A library named EventBus from a company named GreenRobot.…You can find information about EventBus…at the website at greenrobot.org/eventbus.…

You'll find documentation and downloads here…and information about other opensource libraries…that GreenRobot supports.…You could download the library from here as a JAR file,…but it's easier to add your project as a dependency…in your Gradle build file.…In this project named EventBus…I'll go to the Project Structure dialog,…to the app module, to Dependencies,…and I'll add a Library Dependency.…I'll search for EventBus…and I'll choose version 3.0.0 from org.greenrobot.…

If you see a more recent version…that's not a beta you can use that instead.…

Resume Transcript Auto-Scroll

Author

Released

6/15/2017

Once you've created your Android application and designed a user interface, you're ready to learn how to manage your app. This course prepares you to handle events and manage navigation in your Android app. David Gassner begins by explaining how to work with events. He describes the activity lifecycle—what actually happens when a screen appears and disappears—and shares some techniques for working with events using Java objects, lambda expressions, and open source libraries. Next, he covers how to manage navigation, start activities with explicit intents, send data to an activity, and open other apps with implicit intents.

David also shows how to send and receive broadcast messages that let you exchange data and notifications among the different tiers of your application. He demonstrates how to work with menus and the action bar, add a navigation drawer to a layout, and tackle advanced navigation techniques. Later courses in the Essentials series concentrate on other specific skills you can master.