Posts

Showing posts with the label Intents and Filters

Android Intents and Intents Filters

Image
The topic chosen was Intent and Intent Filter are as follows, What is an Intent? An Intent is a messaging object you can use to request an action from another app component. There are three fundamental use cases: Starting an activity Starting a service Delivering a broadcast Complete Topics to be a Professional Android Developer The example below assumes that you are on the Photo Gallery Activity, and want to view a specific photo (which would open in its own activity). This is how the Intent associated with the click photo event is fired: The primary information contained in an  Intent  is the following: Component name - This optional field is an android ComponentName object representing either Activity, Service or BroadcastReceiver class.You can set the component name with setComponent(), setClass(), setClassName(), or with the Intent constructor. Action - This is mandatory part of the Intent o...