title: Test taking photos via adb monkey
body: <p>My App takes photos using the the system Intent</p>
  
  <pre><code>...
  Intent intent = new Intent(
     android.provider.MediaStore.ACTION_IMAGE_CAPTURE );
  intent.putExtra( MediaStore.EXTRA_OUTPUT, mImageFileUri );
  ...
  </code></pre>
  
  <p>I'd like to test my App using the test Monkey; but so far I haven't been able to get the Monkey to take pictures. Is this possible?</p>
  
  <p>The following is the best I've been able to come up with:</p>
  
  <pre><code>adb shell monkey -p com.google.android.camera -p ny.package.name -v 500
  </code></pre>
  
  <p>When I run this command, my App is launched and the camera Activity is also launched correctly. It even seems like the Monkey taps on the take picture button within the system camera App. From watching the Monkey run, it would seem like a possible explanation could be that the Monkey taps on other buttons before the image can actually be saved, and for some reason this 'cancels' the Save photo action.</p>
  
  <p>BTW, I'm running the Monkey on a Nexus one with Android 2.3.6, not an emulator.</p>