Intents and Notifications
Intents Intents are the messages that are used to activate following application components Activities Services Broadcast Receivers Intent is an object, which has a data structure holding any one of the following data : Abstract description of an operation to be performed In the case of broadcasts, a description of something that has happened and is being announced. Invoking Components Application components are invoked through intents in the following way : Activity : Intent object is passed to following functions to invoke the Activity. Context.startActivity (Intent intent) Activity.startActivityForResult (Intent intent, int requestCode) Service : Intent object is passed to following functions to invoke the Service. Context.startService (Intent) Context.bindService (Intent) Broadcast Receivers : Intent object is passed to following functions to invoke the Broadcast Receiver. Context.sendBroadcast ( ...