title: Taking picture from camera without preview
body: <p>I am writing an Android 1.5 application which starts just after boot-up. This is a <code>Service</code> and should take a picture without preview. This app will log the light density in some areas whatever. I was able to take a picture but the picture was black. </p>
  
  <p>After researching for a long time, I came across a bug thread about it. If you don't generate a preview, the image will be black since Android camera needs preview to setup exposure and focus. I've created a <code>SurfaceView</code> and the listener, but the <code>onSurfaceCreated()</code> event never gets fired.  </p>
  
  <p>I guess the reason is, the surface is not being created visually. I've also seen some examples of calling the camera statically with <code>MediaStore.CAPTURE_OR_SOMETHING</code> which takes a picture and saves in the desired folder with two lines of code, but it doesn't take a picture too.  </p>
  
  <p>Do I need to use IPC and <code>bindService()</code> to call this function? Or is there an alternative method to achieve this?</p>