difference between intent.setClass() and intent.setComponent()

Viewed 6568

I am looking at a tutorial and see the author using intent.setClass() to get the to the next Activity and then on the same page he uses intent.setComponent() to get to the next Activity.

So what is the difference and what is the advantage in using any of them?

1 Answers
Related