OpenSource For You

What are intents?

-

In Android, ‘intent’ describes ‘an operation to be performed’. For example, it can say ‘open a browser’, ‘send an SMS’, ‘make a phone call’, etc. In some cases, an intent can also describe something that has happened in the past, and is now being reported to the Android system. Examples of this include reporting that the battery status has changed, a head-set has been plugged in, a camera button was pressed, etc. This category is mostly used by the Android OS WR sHnG ‘sysWHm-wiGH’ nRWifiFaWi­Rns aERuW a FHrWain HYHnW, and is usually referred to as ‘System Broadcast Intents’. These can only be sent by the system, not by an applicatio­n. Intents can be sent between Activities, Services and Broadcast Receivers. Applicatio­ns use intents for both interand intra-applicatio­n communicat­ion.

Action

Data

Category

Extras (Optional)

Newspapers in English

Newspapers from India