title: ActivityNotFoundException: Shortcut could not be started
body: <p>I'm trying to implement App Shortcuts to my app, but i can't get them work.
  My shortcut.xml: </p>
  
  <pre><code>&lt;Shortcuts xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;shortcut
      android:shortcutId="shortcut"
      android:enabled="true"
      android:icon="@drawable/ic_shortcut"
      android:shortcutShortLabel="@string/shortcut_label"&gt;
      &lt;intent
          android:action="android.intent.action.VIEW"
          android:targetPackage="com.example"
          android:targetClass="com.example.package.Activity"/&gt;
  &lt;/shortcut&gt;
  </code></pre>
  
  <p>
  manifest.xml:</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  package="com.example"&gt;
  
  &lt;application
      android:name=".Application"
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:resizeableActivity="false"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
  
      &lt;activity
          android:name=".package.Activity"
          android:label="@string/app_name"
          android:launchMode="singleTask"
          android:theme="@style/AppTheme.NoActionBar"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;action android:name="android.intent.action.SEARCH" /&gt;
          &lt;/intent-filter&gt;
  
          &lt;meta-data
              android:name="android.app.searchable"
              android:resource="@xml/voice_search_params" /&gt;
  
          &lt;meta-data android:name="android.app.shortcuts"
              android:resource="@xml/shortcuts" /&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>So, i do shortcut same as in google example. I can see and click on shortcut, but nothing happens. I've tried different activities, changing activity location, activity action, params, like "exported=true", but nothing changes - in logs i can see only </p>
  
  <blockquote>
    <p>ActivityNotFoundException: Shortcut could not be started</p>
  </blockquote>
  
  <p>The only difference between my shortcut log, and google camera shortcut log is path to activity:</p>
  
  <blockquote>
    <p>I/ActivityManager: START u0 {act=android.intent.action.VIEW flg=0x1000c000 cmp=com.example/.package.Activity}</p>
  </blockquote>
  
  <p>vs</p>
  
  <blockquote>
    <p>I/ActivityManager: START u0 {act=android.media.action.STILL_IMAGE_CAMERA flg=0x1000c000 cmp=com.google.android.GoogleCamera/com.android.camera.activity.CameraImageActivity}</p>
  </blockquote>
  
  <p>Google cam has full path to activity, but package path differs.</p>
  
  <p>PS: tried today google sample, static app shortcuts doesn't work in sample too. Dynamic app shortcuts work well. </p>