Android Intents Cheatsheet

An intent is an abstract description of an operation to be performed.

It can be used with

  1. startActivity to launch an Activity,
  2. broadcastIntent to send it to any interested BroadcastReceiver components, and
  3. startService(Intent) or bindService(Intent, ServiceConnection, int) to communicate with a background Service.

The dictionary meaning of intent is intention or purpose. So, it can be described as the intention to do action.

Types of Android Intents

  1. Implicit Intents
  2. Explicit Intents

We can add data to our intent in key-value pairs that can be retrieved by the receiving activity.

Returning Data from Launched Activity

Implicit Intent : Intent Chooser

Example 2