Therefore, intent filters advertise the capabilities of a component and delimit the intents that can handle. An Intent Filter defines the intent that a component can respond to. The Android System uses intent filters, in order to find a suitable component to handle the intent. This type is used to activate components in other applications. On the other hand, the implicit intent defines the action that should be acted and optionally it provides data. The explicit intent specifies the component that the Android system will activate, so this type is used within an application. In addition, there are two types of Intents. Action – action to be executed (for activity or service) or reported (for broadcastreceiver)īut there are also secondary pieces that complete the structure of the Intent object.The primary attributes of information are: The Intent object contains information which is used either from the components that receive that intent or the Android system itself. It is an abstract description of an operation to be performed or announced. Intents allow you to interact with components that belong either at the same application or outside that application. An Android Intent is a “message object” that its purpose is to activate a component of an application ( activity, service or broadcastreceiver).
0 Comments
Leave a Reply. |