Home > DeveloperSection > Interviews > How will you launch an Activity within you application?

Posted on    May-25-2015 11:58 PM

 Android Android 
Ratings:
 1 Answer(s)
  487  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    May-25-2015 11:58 PM

For launching an application, we will need to create an intent that explicitly defines the activity that we wish to start. For example:

Intent intent = new Intent(this, MyTestActivity.class);
        startActivity(intent);

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

Follow MindStick