title: QCamera seems broken
body: <p>In order to use my phone camera (on a Nexus 5) I use this code :</p>
  
  <pre><code>camera = new QCamera;
  camera-&gt;setViewfinder(ui-&gt;viewFinder);
  ui-&gt;viewFinder-&gt;show();
  
  ui-&gt;stackedWidget-&gt;setGeometry(0,0, 1000, 1700);
  ui-&gt;viewFinder-&gt;setGeometry(0, 0, 1000, 1700);
  
  camera-&gt;start(); // to start the viewfinder
  qDebug() &lt;&lt; camera-&gt;error() &lt;&lt; camera-&gt;errorString();
  qDebug() &lt;&lt; camera-&gt;state() &lt;&lt; camera-&gt;status();
  </code></pre>
  
  <p>coming from the <a href="http://qt-project.org/doc/qt-5/cameraoverview.html" rel="nofollow">Qt doc</a> but it doesn't do anything. I've added the correct includes in the header file and the <code>QT += multimedia multimediawidgets</code> in the .pro file.</p>
  
  <p>The output is : </p>
  
  <pre><code>QCamera::NoError ""
  QCamera::UnloadedState QCamera::UnloadedStatus
  </code></pre>
  
  <p>Which is kind of weird because if the <code>start()</code> function fails it should throw an error : </p>
  
  <blockquote>
    <p>void QCamera::start() [slot] Starts the camera.</p>
    
    <p>State is changed to QCamera::ActiveState if camera is started
    successfully, otherwise error() signal is emitted.</p>
    
    <p>While the camera state is changed to QCamera::ActiveState, starting
    the camera service can be asynchronous with the actual status reported
    with QCamera::status property.</p>
  </blockquote>
  
  <h1>EDIT</h1>
  
  <pre><code>QList&lt;QCameraInfo&gt; cameras = QCameraInfo::availableCameras();
  foreach (const QCameraInfo &amp;cameraInfo, cameras) {
  qDebug() &lt;&lt; cameraInfo.deviceName();
  }
  </code></pre>
  
  <p>Outputs :</p>
  
  <blockquote>
    <p>"back"</p>
    
    <p>"front"</p>
  </blockquote>
  
  <p>So QT detects the devices.</p>
  
  <h1>EDIT 2</h1>
  
  <p>Here's some log which seems to contain a few errors but as it's my first android app, I not totally aware of what's going on :</p>
  
  <pre><code>D/dalvikvm(21060): GC_CONCURRENT freed 172K, 2% free 17025K/17228K, paused 5ms+1ms, total 22ms
  D/dalvikvm(21060): Trying to load lib /data/data/org.qtproject.example.HUD/lib/libgnustl_shared.so 0x42cb2588
  D/dalvikvm(21060): Added shared lib /data/data/org.qtproject.example.HUD/lib/libgnustl_shared.so 0x42cb2588
  D/dalvikvm(21060): No JNI_OnLoad found in /data/data/org.qtproject.example.HUD/lib/libgnustl_shared.so 0x42cb2588, skipping init
  D/dalvikvm(21060): Trying to load lib /data/data/org.qtproject.example.HUD/lib/libQt5Core.so 0x42cb2588
  D/dalvikvm(21060): Added shared lib /data/data/org.qtproject.example.HUD/lib/libQt5Core.so 0x42cb2588
  D/dalvikvm(21060): Trying to load lib /data/data/org.qtproject.example.HUD/lib/libQt5Gui.so 0x42cb2588
  D/dalvikvm(21060): Added shared lib /data/data/org.qtproject.example.HUD/lib/libQt5Gui.so 0x42cb2588
  D/dalvikvm(21060): No JNI_OnLoad found in /data/data/org.qtproject.example.HUD/lib/libQt5Gui.so 0x42cb2588, skipping init
  D/dalvikvm(21060): Trying to load lib /data/data/org.qtproject.example.HUD/lib/libQt5Network.so 0x42cb2588
  D/dalvikvm(21060): Added shared lib /data/data/org.qtproject.example.HUD/lib/libQt5Network.so 0x42cb2588
  I/Qt      (21060): Network start
  D/dalvikvm(21060): Trying to load lib /data/data/org.qtproject.example.HUD/lib/libQt5Multimedia.so 0x42cb2588
  D/dalvikvm(21060): Added shared lib /data/data/org.qtproject.example.HUD/lib/libQt5Multimedia.so 0x42cb2588
  D/dalvikvm(21060): No JNI_OnLoad found in /data/data/org.qtproject.example.HUD/lib/libQt5Multimedia.so 0x42cb2588, skipping init
  D/dalvikvm(21060): Trying to load lib /data/data/org.qtproject.example.HUD/lib/libQt5Widgets.so 0x42cb2588
  D/dalvikvm(21060): Added shared lib /data/data/org.qtproject.example.HUD/lib/libQt5Widgets.so 0x42cb2588
  D/dalvikvm(21060): No JNI_OnLoad found in /data/data/org.qtproject.example.HUD/lib/libQt5Widgets.so 0x42cb2588, skipping init
  D/dalvikvm(21060): Trying to load lib /data/data/org.qtproject.example.HUD/lib/libQt5OpenGL.so 0x42cb2588
  D/dalvikvm(21060): Added shared lib /data/data/org.qtproject.example.HUD/lib/libQt5OpenGL.so 0x42cb2588
  D/dalvikvm(21060): No JNI_OnLoad found in /data/data/org.qtproject.example.HUD/lib/libQt5OpenGL.so 0x42cb2588, skipping init
  D/dalvikvm(21060): Trying to load lib /data/data/org.qtproject.example.HUD/lib/libQt5MultimediaWidgets.so 0x42cb2588
  D/dalvikvm(21060): Added shared lib /data/data/org.qtproject.example.HUD/lib/libQt5MultimediaWidgets.so 0x42cb2588
  D/dalvikvm(21060): No JNI_OnLoad found in /data/data/org.qtproject.example.HUD/lib/libQt5MultimediaWidgets.so 0x42cb2588, skipping init
  D/dalvikvm(21060): Trying to load lib /data/data/org.qtproject.example.HUD/lib/libQt5Positioning.so 0x42cb2588
  D/dalvikvm(21060): Added shared lib /data/data/org.qtproject.example.HUD/lib/libQt5Positioning.so 0x42cb2588
  D/dalvikvm(21060): No JNI_OnLoad found in /data/data/org.qtproject.example.HUD/lib/libQt5Positioning.so 0x42cb2588, skipping init
  D/dalvikvm(21060): Trying to load lib /data/data/org.qtproject.example.HUD/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x42cb2588
  D/dalvikvm(21060): Added shared lib /data/data/org.qtproject.example.HUD/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x42cb2588
  I/Qt      (21060): qt start
  D/dalvikvm(21060): Trying to load lib /data/data/org.qtproject.example.HUD/qt-reserved-files/plugins/mediaservice/libqtmedia_android.so 0x42cb2588
  D/dalvikvm(21060): Added shared lib /data/data/org.qtproject.example.HUD/qt-reserved-files/plugins/mediaservice/libqtmedia_android.so 0x42cb2588
  D/dalvikvm(21060): Trying to load lib /data/data/org.qtproject.example.HUD/qt-reserved-files/plugins/position/libqtposition_android.so 0x42cb2588
  D/dalvikvm(21060): Added shared lib /data/data/org.qtproject.example.HUD/qt-reserved-files/plugins/position/libqtposition_android.so 0x42cb2588
  I/QtPositioning(21060): Positioning start
  D/dalvikvm(21060): Trying to load lib /data/app-lib/org.qtproject.example.HUD-1/libHUD.so 0x42cb2588
  D/dalvikvm(21060): Added shared lib /data/app-lib/org.qtproject.example.HUD-1/libHUD.so 0x42cb2588
  D/dalvikvm(21060): No JNI_OnLoad found in /data/app-lib/org.qtproject.example.HUD-1/libHUD.so 0x42cb2588, skipping init
  I/Adreno-EGL(21060): &lt;qeglDrvAPI_eglInitialize:320&gt;: EGL 1.4 QUALCOMM Build: I0404c4692afb8623f95c43aeb6d5e13ed4b30ddbDate: 11/06/13
  D/OpenGLRenderer(21060): Enabling debug mode 0
  </code></pre>