Suppose that there are two activities in an application named ActivityOne and ActivityTwo. You want to invoke ActivityTwo from ActivityOne. What code you will write?

Suppose that there are two activities in an application named ActivityOne and ActivityTwo. You want to invoke ActivityTwo from ActivityOne. What code you will write?



A) Intent intent=new Intent (this, ActivityTwo.class);

startActivity(intent);

B) startActivity(new Intent(this, ActivityTwo.class));

C) Option A and B are correct.

D) None of the above.


Answer: C


Learn More :