In addition to various parameters.
intent.setcomponent() = Explicitly configure the component to handle the intent.
intent.setClass() = Convenience to call setComponent (ComponentName) with the name returned by the class object.
another difference is that .setComponent() can find a suitable class for you.
* From Android Developers *
SetComponent Android Dev
You should set this value only when you know that you absolutely want to use a particular class; otherwise, itβs better to let the system find the appropriate class so that you respect the installed applications and user preferences.
sealz
source share