title: Android - Fail to connect to camera
body: <p>I'm using the Android APIDemo sample code.</p>
  
  <p>When I run the CameraPreview example, at first it was <a href="https://stackoverflow.com/questions/2556389/android-camera-functionality-howto">giving me an error</a>.  </p>
  
  <p>I traced that one down and the sample was working for a while.<br>
  Now, it no longer works. It says </p>
  
  <pre><code>ERROR/AndroidRuntime(2949): java.lang.RuntimeException: Fail to connect to camera service  
  </code></pre>
  
  <p>What can be causing that? It happens when <code>camera.open()</code> is called.</p>
  
  <p>Thanks,<br>
  Tee</p>