From the course: Android Development: Understanding Intents

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Explicit and implicit intents

Explicit and implicit intents - Android Tutorial

From the course: Android Development: Understanding Intents

Start my 1-month free trial

Explicit and implicit intents

- [Instructor] There are two different kinds of intents that your application can use: implicit and explicit. And we're going to examine the difference here in this video. The first kind is called an explicit intent. Explicit intents are used to specify exactly the class and component that will be used to execute the intent. These are commonly used to communicate within your own application, since your app knows the class names of the components that it contains. Implicit intents are used for a slightly different purpose. In this case, your app indicates that it wants to perform some general kind of operation, but it doesn't need to know specifically which app will handle the request. So, a good example here is when your app wants to display a location on a map or launch a particular URL in a web browser. Now, your app doesn't really need to know or really care which app will perform the action. If there are multiple apps that can perform the action, then the user will be given a…

Contents