Android Development: Understanding Intents

Android Development: Understanding Intents

1h 8mIntermediate2019-08-08

Authors

Joe Marini

Joe Marini

Senior Developer Advocate at Google, Developer

Course details

Android intents are how apps communicate with the operating system and with each other. They are the “glue” between activities. Using intents, you can adjust your app's user experience or ask other apps to perform common actions: taking photos, sending emails and SMS messages, and even displaying locations on maps and playing media. This course teaches you all you need to know to take advantage of this core piece of Android functionality. Instructor Joe Marini shows how to create and send a basic intent, enhance it with values, and then leverage the most useful built-in intents, such as opening links and capturing images, setting alarms, and making phone calls. Plus, learn how to queue up pending intents and force intents to open in certain apps on the user’s device.

Learning objectives
Creating and sending intents
Adding extra values to intents
Creating an intent to capture an image
Creating an intent to compose a text message
Creating an intent to start a phone call
Creating an intent to compose an email
Filtering intents
Pending intents

Skills covered

Android DevelopmentAndroidMobile DevelopmentGoogleDeep Dive (X:Y)

Concepts

Introduction

  • Intents - a foundational Android concept
  • What you should know
  • Getting set up

Basics of Intents

  • What are intents
  • Explicit and implicit intents
  • Creating and sending intents
  • Intent extra values
  • Intent resolution

Common System Intents - Media

  • Starting the camera
  • Open a URL with the browser
  • Capturing a picture
  • Compose an SMS message

Common System Intents - Apps

  • Set an alarm
  • Perform a web search
  • Start a phone call
  • Compose an email
  • Show a location on a map

The Intent System

  • Forcing an app chooser
  • Intent filters
  • Pending intents

Conclusion

  • Next steps
40,000 Toman