Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manoj BhoirRank #599 · 4K reputationPosted Jun 2, 2015, 8:50 PM EDT
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.
Rajeesh MenothRank #118 · 18.4K reputationPosted Jun 2, 2015, 8:54 PM EDT
Neeraj KumarRank #355 · 7K reputationPosted Jul 3, 2015, 10:19 AM EDT