What is 'Intent' in Android?
What is Intent in Android?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Neeraj KumarPosted Jul 3, 2015, 2:19 PM
Rajeesh MenothPosted Jun 3, 2015, 12:54 AM
Manoj BhoirPosted Jun 3, 2015, 12:50 AM
startActivityto launch anActivity,broadcastIntentto send it to any interestedBroadcastReceivercomponents, andstartService(Intent)orbindService(Intent, ServiceConnection, int)to communicate with a backgroundService. An Intent provides a facility for performing late runtime binding between the code in different applications. Its most significant use is in the launching of activities, where it can be thought of as the glue between activities. It is basically a passive data structure holding an abstract description of an action to be performed.There are two primary forms of intents you will use.
Explicit Intents have specified a component (via
setComponent(ComponentName)orsetClass(Context, Class)), which provides the exact class to be run. Often these will not include any other information, simply being a way for an application to launch various internal activities it has as the user interacts with the application.Implicit Intents have not specified a component; instead, they must include enough information for the system to determine which of the available components is best to run for that intent.