title: camera.release() not working
body: <p>i have develped a camera app which uses camera API from this <a href="http://developer.android.com/guide/topics/media/camera.html" rel="nofollow">link</a></p>
  
  <p>its working perfectly it shows preview takes picture but when i finish the app it never releases camera ...i can't use camera solely after installing this app ...even the app get crashed when i restart it.</p>
  
  <p>here's how i am releasing the camera--></p>
  
  <pre><code>      @Override
      protected void onPause() {
          super.onPause();
          if (camera != null) {
           //   preview.setCamera(null);
              camera.stopPreview();
              camera.setPreviewCallback(null);
              camera.release();
  
              camera = null;
          }
      }
  </code></pre>
  
  <p>onResume i put this code also but didn't work..s</p>
  
  <pre><code>     @Override
      protected void onResume() {
          super.onResume();
  
          camera = Camera.open();
  
          preview.setCamera(camera);
      }
  </code></pre>