When you start an activity, you send it information in a couple of forms. Every intent object has a data property that’s typed as a URL, a uniform resource identifier. You can also send an arbitrary number of values as intent extras.
- [Instructor] When you start an activity,…you can send it information in a couple of different forms.…Every intent object has a data property…that's typed as a URI, a Uniform Resource Identifier,…and you can also pass data in the form…of what are known as extras, arbitrary values…of a particular set of types.…I'll demonstrate this in the project SendData.…In this version of the project, I've added…a new Activity called EmailListActivity.…This activity has a single layout file…called activity_email_list.xml.…
It has an image view, a text view,…and a couple of EditText components.…These EditText components are wrapped…in something called a TextInputLayout.…This is a component that's a part of a support library…that makes working with EditText components very easy.…When you work with them in design view,…there's a known bug that contributes…to this layout fidelity warning.…If you scroll down towards the bottom, you'll see this link…to ignore all fidelity warnings for this session.…
It's just a warning, and not an error,…
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