Intent (Android)
An editor has nominated this article for deletion. You are welcome to participate in the deletion discussion, which will decide whether or not to retain it. |
An Intent is a messaging object[1] which provides a facility for performing late runtime binding between the code in different applications in the Android development environment. Its most significant use is in the launching of activities, where it can be thought of as the glue between activities: intents provide an inter-application messaging system that encourages collaboration and component reuse.[2]
An intent is basically a passive data structure holding an abstract description of an action to be performed.[3] For Dummies likens an intent to flicking a switch: "Your intent is to turn on the light, and to do so, you perform the action of flipping the switch to the On position."[4]
The concept was created as a way to allow developers to easily remix different apps and allow each type of task (called activity) to be handled by the application best suited to it, even if provided by a third party. Although the concept was not new, the Android architecture doesn't require elevated privileges to access the components, which makes it an open platform.[5]
An analysis in 2011 by researches from Berkeley found that intents can suppose a security risk, allowing attackers to read content in messages and to insert malicious messages between applications. [2]
References
- ^ Ferrill, Paul (2011). Pro Android Python with SL4A. Apress. p. 3.
- ^ a b Felt, A. P., Chin, E., Hanna, S., Song, D., & Wagner, D. (2011, October). Android permissions demystified. In Proceedings of the 18th ACM conference on Computer and communications security (pp. 627-638). ACM.
- ^ Android API retrieved 23-Jul-2013
- ^ Felker, Donn. "Common Android Intent Usage". For Dummies. Wiley. Retrieved 3 September 2013.
- ^ "Remixing apps with Android intents". defeloper.vodafone.com. Vodafone. Retrieved 18 September 2013.