Im a little confused by the need to specify the activity name in the creation of the intent.
the contstructor we are using is:
public Intent(Context packageContext, Class<?> cls)
which means which package and which class ??
The code in the book is :
Intent i = new Intent(QuizActivity.this, CheatActivity.class);
Why can’t I use Intent i = new Intent([color=#0000FF]this[/color], CheatActivity.class); ?? as “A Context as its first parameter (this is used because the Activity class is a subclass of Context)”.
For example, developer.android.com/training/b … ivity.html only uses ‘this’ as the Context rather than ‘ActivityName.this’.