Wednesday, 15 June 2011

Android Intents


Android Intent example
Have you thought how you are navigated from one screen to another in Android application? Here is the answer. Intent – a jargon in Android is doing all the work at background. Go through the post, you will learn how to navigate from one screen to another.
What is Intent?
  • Intents are system messages, running around the inside of the device, notifying applications of various events, from hardware state changes (e.g.,an SD card was inserted), to incoming data (e.g., an SMS message arrived),to application events (e.g., your activity was launched from the device’s main menu).
  • Not only can you respond to intents, but you can create your own, to launch other activities, or to let you know when specific situations arise (e.g., raise such-and-so intent when the user click this button).
  • Intents are asynchronous messages which allow Android components to request functionality from other components of the Android system. For example an Activity can send an Intents to the Android system which starts another Activity.
  • Three of the core components of an application — activities, services, and broadcast receivers — are activated through messages, called intents [Read more at android developers site]. 

    However, just one more detail to be introduced as promised and that is -
    There are 2 types of intents that Android understands.
    1. Explicit Intent
     2.Implicit Intent

No comments:

Post a Comment

Android SQLite Database Viewer or Debuging with Stetho

Every Android Developer uses SQLite Database to store data into the Android Application data. But to view the data in SQLite have a lot of...