How will you launch an activity within your application?

Giang Phạm

New member
How will you launch an activity within your application?
Answer
To start an activity,
use the method startActivity(intent). This method is defined on the Context object which Activity extends. The following code demonstrates how you can start another activity via an intent. # Start the activity connect to the # specified class Intent i = new Intent(this, ActivityTwo.
 

Tìm kiếm

Back
Top