title: Using Monkey in a subactivity only (android debugging)
body: <p>I'm trying to use Monkey debuggin tool (from adb) to stress test a <strong>part</strong> of my application.
  As Monkey acts in a total random way, I'd like it to concentrate on the part of code that might contain an error I'm looking for (very rare bug, and I don't know how to replicate it).</p>
  
  <p>So, in my Main activity I have 6 buttons, each fires up a new activity. I'd like to set monkey to look only in one of those activities, and every activity accesible from it. I cannot find a reasonable way to do it.</p>
  
  <p>I've tried the<br>
  <code>adb shell monkey -p my.package.name -c android.intent.category.MONKEY 1000</code><br>
  and in my manifest file I've put in some activities, that I'm interested in:</p>
  
  <pre><code>        &lt;intent-filter&gt;
              &lt;category android:name="android.intent.category.MONKEY"/&gt;                
          &lt;/intent-filter&gt;
  </code></pre>
  
  <p>But it didn't work. Monkey still fires up activities that are not categorized by this tag.
  It is crucial for Monkey to work in selected subactivities, because it wastes about 95% of time roaming through my app, outside of subactivities that I actually want to test.</p>
  
  <p>Also I've tried some simple script to launch the desired subactivity, but with no success.</p>
  
  <p>Looking for any help,<br>
  cheers,<br>
  kajman</p>