Home > DeveloperSection > Forums > What is Intent in Android?
john rob

Total Post:108

Posted on    October-11-2014 1:23 AM

 Android Android  Mobile Development 

 1 Reply(s)
 858  View(s)
Rate this:
what is intent in android

Kamlakar Singh
Kamlakar Singh

Total Post:194

Posted on    October-11-2014 1:23 AM

Intent is basically a message that is passed between components (such as Activities, Services, Broadcast Receivers, and Content Providers).

It’s also use for create target of another Activity. In Intent we can send data via bundle.


Example à



btnSubmit.setOnClickListener(new View.OnClickListener() {



                  public void onClick(View v) {

                        // TODO Auto-generated method stub


                        // TODO Auto-generated method stub

                        // Intent objIntent=new Intent(CurrentClass.this,

                        // TargretClass.class)

                        // startActivity(intent);

                        Intent intent = new Intent(MainActivity.this, Second.class);






// It will open Second Activity.

Don't want to miss updates? Please click the below button!

Follow MindStick