title: Launch application from another using a deeplink
body: <p>I am working on two apps A and B, I wish to interlink them with Deep links.</p>
  <p>App B has a deeplink like the following: <code>myApp://open/myAction?param=123</code></p>
  <p>It looks like:</p>
  <pre><code>&lt;!-- Update myAction deep link --&gt;
  &lt;intent-filter android:label=&quot;@string/launcherName&quot;&gt;
  
      &lt;action android:name=&quot;android.intent.action.VIEW&quot; /&gt;
  
      &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;
      &lt;category android:name=&quot;android.intent.category.BROWSABLE /&gt;
      &lt;data
          android:host=&quot;open/*&quot;
          android:scheme=&quot;myApp&quot; /&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  <p>If I launch the app with the adb it works perfect.</p>
  <p>Now I'm trying to launch application B, when user clicks a button within Activity A.</p>
  <p>I tried this (found in: <a href="https://developer.android.com/training/basics/intents/sending.html" rel="nofollow noreferrer">GoogleDeveloper</a> ) when the button is clicked (<code>OnClickListener</code>)</p>
  <pre><code>// Build the intent
  Uri myAction = Uri.parse(mEditText.getText().ToString()); // is something like: `myApp://open/myAction?param=1AD231XAs`
  Intent mapIntent = new Intent(Intent.ACTION_VIEW, myAction);
  
  // Verify it resolves
  PackageManager packageManager = getPackageManager();
  List&lt;ResolveInfo&gt; activities = packageManager.queryIntentActivities(mapIntent, 0);
  boolean isIntentSafe = activities.size() &gt; 0;
  
  // Start an activity if it's safe
  if (isIntentSafe) {
      startActivity(mapIntent);
  }
  </code></pre>
  <p>Yet I cannot open the other app with this app.</p>