title: Opening whatsapp through intent not working in Android 11
body: <p>Opening Whatsapp with intent is not working in android OS 11 but working fine up to android (OS) 10 devices, It displays the message &quot;Whatsapp app not installed in your phone&quot; on the android 11 device.  Does anyone have a solution for this?</p>
  <pre><code>String contact = &quot;+91 9999999999&quot;; // use country code with your phone number
          String url = &quot;https://api.whatsapp.com/send?phone=&quot; + contact;
          try {
              PackageManager pm = context.getPackageManager();
              pm.getPackageInfo(&quot;com.whatsapp&quot;, PackageManager.GET_ACTIVITIES);
              Intent i = new Intent(Intent.ACTION_VIEW);
              i.setData(Uri.parse(url));
              context.startActivity(i);
          } catch (PackageManager.NameNotFoundException e) {
            Toast.makeText(mContext, &quot;Whatsapp app not installed in your phone&quot;,Toast.LENGTH_LONG).show();
             e.printStackTrace();
          }
  </code></pre>