title: Open existing or new activity from browser
body: <p>I am trying to implement an intent filter but for some reason (unknown to me) can succeed.</p>
  
  <p>I declared activity in the following way:</p>
  
  <pre><code>&lt;activity
      android:name="com.example.StartActivity"
      android:label="@string/start_activity_title"
      android:windowSoftInputMode="adjustPan"
      android:exported="true"&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="myapp"
              android:host="terms-signed.com"
              android:pathPrefix="/?"/&gt;
      &lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>The browser tries to open URIs like <code>myapp://terms-signed.com/?documentKey=SOME-HEX</code></p>
  
  <p>No matter if I put such URI in the browser address field or if I tap on a similar link in a HTML page, nothing happens. </p>
  
  <p>There is no chooser shown, my app does not become foremost, Android does not launch my app if it's not running. Nothing. Only browser shows page with message that the webpage at the address might be temporarily down etc.</p>
  
  <p>I am using Android 4.2.1 / Galaxy Nexus.</p>
  
  <p>What can be done to make this work?</p>