17
From the Pro Android 2 book: "ComponentName wraps a package name and a class name together. For example..."
Intent intent = new Intent();
Intent.setCompnonet(new ComponentName(
"com.android.contacts"
,"com.android.contacts.DialContactsEntryActivity");
startActivity(intent)
If you look at the example, you'll notice that the package name can be easily derived from the class name. So the obvious question is: why two parameters? Why not provide only the class name?
Is there a scenario where the class passed to the ComponentName constructor doesn't belong to the package passed to the same constructor?