title: Android Camera "Error -1" wenn calling camera.takePicture
body: <p>in my Activity, i want to take a picture with android.hardware.Camera.
  The code (see below) works fine in my AVD, but it doesn't work on my Android phone - all I get is "Error -1".</p>
  
  <p><strong>AVD</strong>:
  Target: Android 2.3.3
  SD Card: 64 MB
  WVGA800</p>
  
  <p><strong>Phone</strong>:
  Samsung Galaxy S2 with Android 2.3.6</p>
  
  <p><strong>Code</strong>:<br>
  <code>
      android.hardware.Camera camera = Camera.open();<br>
      camera.takePicture(null, null, mPictureCallback);<br>
      camera.stopPreview();<br>
      camera.setPreviewCallback(null);<br>
      camera.release();<br>
      camera = null;<br>
  </code>   </p>
  
  <p><strong>Manifest:</strong><br>
  <code>
      uses-feature android:name="android.hardware.camera"<br>
      uses-permission android:name="android.permission.CAMERA"<br>
  </code></p>
  
  <p>I don't think that the PictureCallback matters - when I comment everything in the onPictureTaken method, the same error is returned.
  Also, I have restarted my phone, tried setting a few Camera parameters etc. - but nothing helps.
  I can't find this specific error code for the Camera either.</p>
  
  <p>Thanks in advance!</p>