Android Intent

Intents are used as a message passing mechanism. It works within your application, between the applications.  One of the most common uses for intents is to start new activities. It is either explicitly (by specifying the class to load) or implicitly (by requesting that an action be performed on a piece of data).


Explicit Intent
startActivity(new Intent(FirstActivity.this,SecondActivity.class));

Implicit Intent
Intent intent = new Intent (Intent.ACTION_DIAL, Uri.parse 
                           ("tel: 123-4567"));
StartActivity (intent);

Comments

Popular posts from this blog

Edit text with clear button in Android app

Input filter (space not allowed) for EditText

Change Apache Tomcat Port Number