There are 2-3 ways to use Intent
to start New Activity.
Mostly, I am using
Intent openStartingPoint = new Intent("com.Example.Jeeten.Connection");
startActivity(openStartingPoint);
But sometimes, It does not work, It shows error Activity
not found and in that case If I use
Intent openStartingPoint = new Intent(Connection.this, Hello.class);
startActivity(openStartingPoint);
then It works fine. What can be the issue with this ?