title: Android deep link does not work if the app is opened by deep link already
body: <p>Deep link does not work if the app is opened by deep link already.</p>
  
  <p>However, if I open the app not by triggering a deeplink, like clicking the app icon to open the app. Then triggering deeplink afterward would always work.</p>
  
  <hr>
  
  <p>Here come the details:</p>
  
  <p>So I have my activity set up like this in AndroidManifest, namely LaunchActivity.</p>
  
  <pre><code>&lt;activity
      android:name="some.package.name.LaunchActivity"
      android:screenOrientation="portrait"
      android:theme="@style/Theme.SomeTheme"&gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.MAIN" /&gt;
          &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
      &lt;/intent-filter&gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.VIEW" /&gt;
          &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
          &lt;data android:scheme="dlscheme" android:host="dlhost" /&gt;
      &lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>And in LaunchActivity, I would print a log in onCreate() to indicate that it have been there.</p>
  
  <p>I used </p>
  
  <pre><code>adb shell am start -W -a android.intent.action.VIEW -d "dlscheme://dlhost/param" some.package.name
  </code></pre>
  
  <p>to test the deep link.</p>
  
  <p>With the app killed, I used the above command. It can open the app and route to the correct activity, no problem.
  And have the following log.</p>
  
  <pre><code>adb shell am start -W -a android.intent.action.VIEW -d "dlscheme://dlhost/param" some.package.name
  Starting: Intent { act=android.intent.action.VIEW dat=dlscheme://dlhost/param pkg=some.package.name }
  Status: ok
  Activity: some.package.name/.activity.LaunchActivity
  ThisTime: 898
  TotalTime: 898
  WaitTime: 919
  Complete
  </code></pre>
  
  <p>However, if I enter the same command again, without killing the app.
  It would only open the app, but it will not open the correct activity, and produce the following log.</p>
  
  <pre><code>adb shell am start -W -a android.intent.action.VIEW -d "dlscheme://dlhost/param" some.package.name
  Starting: Intent { act=android.intent.action.VIEW dat=dlscheme://dlhost/param pkg=some.package.name }
  Warning: Activity not started, its current task has been brought to the front
  Status: ok
  Activity: some.package.name/.activity.LaunchActivity
  ThisTime: 0
  TotalTime: 0
  WaitTime: 6
  Complete
  </code></pre>
  
  <p>with this extra line</p>
  
  <pre><code>Warning: Activity not started, its current task has been brought to the front
  </code></pre>
  
  <p>I actually also tried this with a website, using this chrome intent:</p>
  
  <pre><code>intent://dlhost/param#Intent;scheme=dlscheme;package=some.package.name;end
  </code></pre>
  
  <p>and it would behave the same.</p>