Saturday, 17 August 2013

Start Activity from Object

Start Activity from Object

The usual way to start an activity is
Intent intent = new Intent(this, SecondActivity.class);
startActivity(intent);
Is there a way to start an Activity from an Object?.. like
SecondActivity var = new SecondActivity();
var.start();
Something like that..?!

No comments:

Post a Comment