Use in your Project


Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setComponent(new ComponentName("com.mediaplay.player", "com.mediaplay.player.Activity.Player.Player"));
try {
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra("title", title);
intent.putExtra("url", url);
intent.putExtra("live", 1);
intent.putExtra("licence",licence );
intent.putExtra("referer", referer);
intent.putExtra("useragent", useragent);
startActivity(intent);
} catch (ActivityNotFoundException e) {  //App not found show install dialog
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setMessage(message)
builder.setTitle(title);
builder.setPositiveButton("Install App", new DialogInterface.OnClickListener() {

public void onClick(DialogInterface dialog, int id) {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("https://play.google.com/store/apps/details?id=com.mediaplay.player"));
intent.setPackage("com.android.vending");
context.startActivity(intent);
dialog.cancel();
}
});
builder.create().show();
}

//If need any help fell free to contact :)