When I try to launch another app from my app, My app gets force closed.
opendiscord = new Intent(getPackageManager().getLaunchIntentForPackage("com.discord"));
this is my code, The problem is due to I don't have the app installed. How do I make a "if condition" to check whether the app is installed or not before executing this. So no error throws.