Skip to main content

Posts

Showing posts with the label Intent example

Using Intent in Android

Intent and intent filters in Android/Using intent to start a new activity/Intent Example in android Ø   Intents are asynchronous messages which allow Android components to request functionality from other components of the Android system Ø   Eg: an Activity can send an Intents to the Android system which starts another Activity Ø   Intents are instances of the android.content.Intent class. Ø   An Intent can also contain data. This data can be used by the receiving component Ø   Eg: application can calls via an Intent a browser component. As data is it may send the URL to the browser component. Ø   Intent  Flters  registers Activities, Services, Broadcast Receiver (as being capable of performing an action on a set  of data) Ø   Two types of Intents:  Implicit Intents and Explicit Intent Ø   Explicit Intents- component which should be called by the Android system, by using the Java class as identifier.                    Intent i = new Intent(this, ActivityTwo.class);