Android share deep link url using whatsapp and open my app when click deep link
<p>I am sharing some data using whatsapp, and I want to open a specific activity in my app when user press deep link from whatsapp</p>

<p>I have the following schema </p>

<pre><code>myapp://openapp?type=banner&amp;id=10
</code></pre>

<p>whatsapp share the link as a normal text not as url and also I can't open my app when user press it</p>

<p>can anyone help please ?</p>

<p><strong>EDIT</strong></p>

<p>this is my sharing method</p>

<pre><code>public static void openWhatsApp(Context mContext) {

        PackageManager pm = mContext.getPackageManager();
        try {

            Intent whatsAppIntent = new Intent(Intent.ACTION_SEND);
            whatsAppIntent.setType("text/plain");

            String text = "myapp://openapp?type=banner&amp;id=10";

            PackageInfo info=pm.getPackageInfo("com.whatsapp", PackageManager.GET_META_DATA);
            whatsAppIntent.setPackage("com.whatsapp");

            whatsAppIntent.putExtra(Intent.EXTRA_TEXT, text);
            mContext.startActivity(Intent.createChooser(whatsAppIntent, mContext.getString(R.string.share_with)));

       } catch (NameNotFoundException e) {
            Toast.makeText(mContext, "WhatsApp not Installed", Toast.LENGTH_SHORT).show();
       }
}
</code></pre>