Sorry if this question is a duplicate. i searched the web but didn't get anywhere. And i don't know how to ask this question. Here's the Question.
public class CrimeActivity extends SingleFragmentActivity {
public static final String EXTRA_CRIME_ID =
"com.bignerdranch.android.criminalintent.crime_id";
public static Intent newIntent(Context packageContext, UUID crimeId) {
Intent intent = new Intent(packageContext, CrimeActivity.class);
intent.putExtra(EXTRA_CRIME_ID, crimeId);
return intent;
}
@Override
protected Fragment createFragment() {
return new CrimeFragment();
}
In this code when intent is initialized the 2nd argument is CrimeActivity.class . What is CrimeActivity.class, how is it used.? Can someone please help. Any help would be appreciated. Thanx.