Monday, October 28, 2013

1.2. Starting activities

1.2. Starting activities

To start an activity use the method startActivity(intent). This method is defined on theContext 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
ntent i = new Intent(this, ActivityTwo.class);
I
tartActivity(i);
s

No comments:

Post a Comment