Wednesday, 18 September 2013

Why use an intent to create an activity?

Why use an intent to create an activity?

Folks,
This is a newbie question. I have read a few articles on intents but I am
a bit confused on what the main idea behind an intent is when it comes to
starting an activity. If I know that I have to create and show an
activity, why can't I do something as simple as the following?
MyActivity a = new MyActivity();
a.show();
Thank you in advance for your help.
Regards,
Peter

No comments:

Post a Comment