title: Android Monkey: "No activities found to run, monkey aborted"
body: <p>My package is named com.mywebsite.banana.</p>
  
  <ul>
  <li>I want to have a seed, so the test is repeatable: -s 13</li>
  <li>I want to have a fairly low-level of verbosity: -v</li>
  <li>I want to run 500 psuedo-random commands: 500</li>
  </ul>
  
  <p><strong>I'm calling monkey like this</strong>:</p>
  
  <pre><code>adb shell monkey -s 13 -p com.mywebsite.banana -v 500
  </code></pre>
  
  <p><strong>My output</strong>:</p>
  
  <pre><code>:Monkey: seed=13 count=500
  :IncludeCategory: android.intent.category.LAUNCHER
  :IncludeCategory: android.intent.category.MONKEY
  No activities found to run, monkey aborted
  </code></pre>
  
  <p>My AndroidManifest.xml has this in it:</p>
  
  <pre><code>&lt;categoy android:name="android.intent.category.LAUNCHER"/&gt;
  </code></pre>
  
  <p>What am I doing wrong? Is there something I need to add to my app before running the monkey? The main activity is located in com.mywebsite.banana - is that the correct path to be passed in, or should it go all the way to the activity like this: com.mywebsite.banana.activityName?</p>
  
  <p>From what I've read, it seems as though I'm doing this correctly:</p>
  
  <ul>
  <li><a href="http://dnlkntt.wordpress.com/2014/04/01/how-to-stress-test-your-android-app-with-monkey/" rel="noreferrer">http://dnlkntt.wordpress.com/2014/04/01/how-to-stress-test-your-android-app-with-monkey/</a></li>
  <li><a href="http://www.tutorialspoint.com/android/android_testing.htm" rel="noreferrer">http://www.tutorialspoint.com/android/android_testing.htm</a></li>
  <li><a href="http://hariniachala.blogspot.com/2011/09/android-application-ui-testing-with.html" rel="noreferrer">http://hariniachala.blogspot.com/2011/09/android-application-ui-testing-with.html</a></li>
  </ul>
  
  <hr>
  
  <p><strong>Edit</strong></p>
  
  <p>Attempt 1:</p>
  
  <pre><code>adb shell monkey -p com.mywebsite.banana -c intent.CATEGORY_LAUNCHER -v 500
  </code></pre>
  
  <p>Result 1:</p>
  
  <pre><code>:Monkey: seed=13 count=500
  :AllowPackage: com.mywebsite.banana
  :IncludeCategory: intent.CATEGORY_LAUNCHER  
  // Warning: no activities found for category intent.CATEGORY_LAUNCHER
  ** No activities found to run, monkey aborted
  </code></pre>
  
  <p>Attempt 2:</p>
  
  <pre><code>adb shell monkey -p com.mywebsite.banana -c android.intent.category.MONKEY -v 500
  </code></pre>
  
  <p>Result 2:</p>
  
  <pre><code>:Monkey: seed=13 count=500
  :AllowPackage: com.mywebsite.banana
  :IncludeCategory: android.intent.category.MONKEY 
  No activities found to run, monkey aborted
  </code></pre>
  
  <p>Attempt 3:</p>
  
  <pre><code>adb shell monkey -p com.mywebsite.banana -c android.intent.category.LAUNCHER -c android.intent.category.MONKEY -v 500
  </code></pre>
  
  <p>Result 3:</p>
  
  <pre><code>:Monkey: seed=13 count=500
  :AllowPackage: com.mywebsite.banana
  :IncludeCategory: android.intent.category.LAUNCHER
  :IncludeCategory: android.intent.category.MONKEY 
  No activities found to run, monkey aborted
  </code></pre>
  
  <p>Some of the manifest:</p>
  
  <pre><code>&lt;activity
          android:name="com.mywebsite.banana.FRCActivity"
          android:launchMode="singleTask"
          android:configChanges="orientation|screenSize"
          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;intent-filter&gt;
              &lt;action android:name="none" /&gt;
              &lt;category android:name="android.intent.category.MONKEY"/&gt;
          &lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>Also tried this version of the manifest, with no change: </p>
  
  <pre><code>    &lt;activity
          android:name="com.mywebsite.banana.FRCActivity"
          android:launchMode="singleTask"
          android:configChanges="orientation|screenSize"
          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;category android:name="android.intent.category.MONKEY"/&gt;
          &lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre>