title: Take picture automatically with MediaStore Intent
body: <p>What I am looking to do is to capture an image on a button click, without requesting any other input from the user.</p>
  
  <p>At the moment I'm using a <code>MediaStore.ACTION_IMAGE_CAPTURE</code> intent inside my activity, which is called when pressing a button on a widget. At the moment this opens the camera preview allowing me to take a picture. </p>
  
  <p>That's all working great, however what I'm looking to do is when the user presses the button on the widget, take the picture straight away and display a preview of the captured image. So it essentially snaps the picture automatically, without the need for the user to press anything else.</p>
  
  <p>I tried using the Camera API directly, using a <code>SurfaceView</code> class to capture the image and call the <code>PictureCallback</code> etc, this worked how I want it to, however the quality of the images was very low and I couldn't figure out how to change it.</p>
  
  <p>So I guess I'm looking for an answer to either of those two problems, or both if anyone knows them. </p>
  
  <p>Firstly, is there anyway, using something similar to a <code>MediaStore.ACTION_IMAGE_CAPTURE</code> intent to snap the image automatically without requesting the user to take the picture. </p>
  
  <p>Or secondly, how can I increase the quality and resolution of an image captured using the Camera API directly (<code>camera.takePicture(shutterCallback, rawCallback, jpegCallback</code>); and all that business).</p>
  
  <p>Any help would be much appreciated.</p>