Any app can register to handle implicit intents. You do this in the application manifest with "intent filters". The filter looks for a particular kind of data. When an intent is sent by any app that contains that kind of data the app volunteers to handle it.
- [Instructor] I've previously demonstrated…sending an implicit intent, that's handled by Google Maps.…But, any application can register…to handle implicit intents.…You do this in the application manifest,…by setting up intent-filters.…I'll demonstrate this with two applications…in the exercise files directory for this video.…The first application is called SendImplicit,…and it's a version of the same app…that I've been using all along.…I've added another button labeled Send Text,…that doesn't do anything yet.…
And I'll show you first,…how to package up data and send it,…and make sure that there's an application…somewhere on the device that can handle the message.…In the MainActivity class,…there's already a method called sendText,…that's wired up to that button.…Within the method, I'll create an Intent object,…and I'll instantiate it with new_Intent.…And this time, instead of passing in…an action and a URI, I'll only pass in an action.…And it'll be the same one…that I used previously, action_view.…
Next, I'll put a string extra.…
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