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.…
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.
- Working with events
- Handling events with Java objects and lambda expressions
- Managing navigation
- Sending data to an activity
- Opening other apps with implicit intents
- Sending and receiving broadcast messages
- Working with menus and the action bar
- Adding a navigation drawer
- Advanced navigation techniques
- Removing activities from the back stack