I am trying to open another application from my application like this inside onclick listner
Intent intent = new Intent(Mainactivity.this, com.pkg.classname)
startActivity(intent);
It does not work.
I want to open the app if installed or open in playstore if not installed.
Please help