I just started to learn programming in android and while working with the Android layout tutorial. I noticed that they created a new Intent with the following code.
// Create an Intent to launch an Activity for the tab (to be reused) intent = new Intent().setClass(this, ArtistsActivity.class);
So far, all books read have created a new intention, using
intent = new Intent(this, ArtistActivity.class);
and wondered if there is a difference between the two lines of code.
source share