4.3.6. Intents for Launching Other Activities
Android uses a technique known as intent messaging to communicate information between activities within one app or activities in separate apps. Each Activity
can specify intent filters indicating actions the Activity
is capable of handling. Intent filters are defined in the AndroidManifest.xml
file. In fact, in each app so far, the IDE created an intent filter for the app’s only Activity
indicating that it could respond to the predefined action named android.intent.action.MAIN
, which specifies that the Activity
can be used to launch the app to begin its execution.
An Intent is used to launch an Activity
—it indicates an action to be performed and the data on which to perform that action. In this app, ...
Get Android™ How to Program, Second Edition 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.