Android: Using Categories in Monkey
<p>How do I use the categories option of the <a href="http://developer.android.com/guide/developing/tools/monkey.html">monkey</a> tool?</p>

<p>The relevant portion of my manifest file looks like this:</p>

<pre><code>   &lt;application android:icon="@drawable/icon" android:label="@string/app_name" android:name="MyApp" android:debuggable="true" android:allowBackup="false" android:testOnly="false"&gt;
        &lt;activity android:name="MyLauncherActivity" android:label="@string/app_name" android:screenOrientation="portrait"&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="MyMainActivity" android:label="@string/app_name" android:screenOrientation="portrait"&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>I run the application on my phone to make sure it is working then I enter this at the command line:</p>

<pre><code>adb shell monkey -p my.full.package.path -vvv 3
</code></pre>

<p>It works just fine.</p>

<p>But this doesn't work:</p>

<pre><code>adb shell monkey -p my.full.package.path -c intent.CATEGORY_LAUNCHER -vvv 3
</code></pre>

<p>and yields the following output:</p>

<pre><code>:Monkey: seed=0 count=3

:AllowPackage: myapp.full.package.path

:IncludeCategory: intent.CATEGORY_LAUNCHER

// Warning: no activities found for category intent.CATEGORY_LAUNCHER

** No activities found to run, monkey aborted.
</code></pre>

<p>And trying some variants also didn't work:</p>

<pre><code>    :Monkey: seed=0 count=3

:AllowPackage: my.full.package.path

:IncludeCategory: CATEGORY_MONKEY

:IncludeCategory: intent.CATEGORY_MONKEY

:IncludeCategory: android.intent.MONKEY

:IncludeCategory: android.intent.category.MONKEY

:IncludeCategory: MONKEY

// Warning: no activities found for category CATEGORY_MONKEY

// Warning: no activities found for category intent.CATEGORY_MONKEY

// Warning: no activities found for category android.intent.MONKEY

// Warning: no activities found for category MONKEY

** No activities found to run, monkey aborted.
</code></pre>

<p>How do I specify categories </p>
