title: Trying to enable deep linking to android app, testing intent can't launch activity
body: <p>I'm trying to enable deep linking so that certain links launch my app. </p>
  
  <p>I read this turotial <a href="https://developer.android.com/training/app-indexing/deep-linking.html" rel="noreferrer">https://developer.android.com/training/app-indexing/deep-linking.html</a> and following it pretty close but when I try to test it by using adb to send the VIEW intent to the app I just get the error</p>
  
  <pre><code>Error: Activity not started, unable to resolve Intent { act=android.intent.actio
  n.VIEW dat=example://gizmos flg=0x10000000 pkg=com.myapp.DeepLinkActivity }
  </code></pre>
  
  <p><strong>DeepLinkActivity.java</strong></p>
  
  <pre><code>public class DeepLinkActivity extends Activity {
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      if (getIntent().getAction() == Intent.ACTION_VIEW) {
          Uri uri = getIntent().getData();
  
      }
  
    }
  }
  </code></pre>
  
  <p><strong>Android Manifest declaring deeplink activity</strong></p>
  
  <pre><code>&lt;activity android:name="com.myapp.DeepLinkActivity" &gt;
          &lt;intent-filter&gt;
  
              &lt;action android:name="android.intent.action.VIEW" /&gt;
  
              &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
  
  
              &lt;data
                  android:host="gizmos"
                  android:scheme="example" /&gt;
              &lt;!-- Accepts URIs that begin with "http://www.example.com/gizmos” --&gt;
              &lt;data
                  android:host="www.example.com"
                  android:pathPrefix="gizmos"
                  android:scheme="http" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>ADB command to send the view intent</p>
  
  <pre><code>adb shell am start -W -a android.intent.action.VIEW -d "example://gizmos" com.myapp.DeepLinkActivity
  </code></pre>
  
  <p>But I don't think I even need the full path to the activity</p>
  
  <pre><code>adb shell am start -W -a android.intent.action.VIEW -d "example://gizmos" com.myapp
  </code></pre>