title: Cannot launch activity from adb
body: <p>I have the following in my AndroidManifest.xml (I just added a second activity to the default project):</p>
  
  <pre><code>&lt;application
  android:allowBackup="true"
  android:icon="@drawable/ic_launcher"
  android:label="@string/app_name"
  android:theme="@style/AppTheme" &gt;
  &lt;activity
      android:name="com.example.com.testapp.MainActivity"
      android:label="@string/app_name" &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;/activity&gt;
  &lt;activity
      android:name="com.example.com.testapp.TestActivity"
      android:label="@string/title_activity_test" &gt;
      &lt;intent-filter&gt;
          &lt;action android:name="com.testapp.action.TEST_ACTION" /&gt;
      &lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>
  I want to launch the TestActivity using adb command. I tried:</p>
  
  <pre><code>./adb shell am start -a com.testapp.action.TEST_ACTION
  </code></pre>
  
  <p>But it gives the error:</p>
  
  <pre><code> Error: Activity not started, unable to resolve Intent { act=com.testapp.action.TEST_ACTION flg=0x10000000 }
  </code></pre>
  
  <p>Can someone please explain why I am getting this error and how to resolve it?</p>
  
  <p>Edit :</p>
  
  <p>Can anyone tell a way to just use action to launch the 'TestActivity'.</p>