Skip to content

Instantly share code, notes, and snippets.

@rajbharath
Created July 27, 2014 06:21
Show Gist options
  • Save rajbharath/d1cb5f14f8dcedd00831 to your computer and use it in GitHub Desktop.
Save rajbharath/d1cb5f14f8dcedd00831 to your computer and use it in GitHub Desktop.
Intent
- is a messaging object with in the app components
- used to invoke any component from any other app components
- can carry small amount of information along with that for the invoking component to act upon it
type:
Expicit - when the optional argument which is qualified class name is given to an intent, it becomes the explicit intent
Implicit - when the action, data and mime type, category is given the android OS searches all the other apps intent filters for the given action, data and mime type , category to match the intent to invoke. if there are many options are available then the chooser is given to the user to select the appropriate one.
for more details:
- startActivity
- startActivityForResult /onActivityResult - request code , result code, data
- startService
- bindService
- sendBroadCast - sendOrderedBroadcast - sendStickyBroadCast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment