Intents

An Intent is a class that is used to describe an operation to be performed. Intents are the primary way in which the developer starts new activities within the app. This is how you will use them in the app you develop for this book. However, Intents can also be used to communicate between activities. An Intent is essentially a message that defines an action to be taken and the data that the action is to be performed on. Intents can be used to start activities or broadcast both within and outside the app to provide instructions and data to other activities.

Activities, layouts, and intents are important components of an Android app. You will use all of them in almost every app you develop.

Get Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.