How do you use Intent?

Ngọc Trâm

New member
How do you use Intent?
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