Android Camera Will Not Display
-
I am trying to run the Camera Example that comes with Qt.
I deploy it to my android device no problem, I see all the gui elements, but the camera does not actually display an image.Here is some information that might be relevant:
Qt version: 5.2.0-rc1 (android)
Build Android for armeabi-v7ahere is one suspicious message that I'm getting in the Application Output tab, right after it states that the camera will be opened successfully it complains about a plugin that does not support propagateSizeHints.
D/Camera (15166): The result of device policy is true. Camera will be opened successfully
W/Qt (15166): kernel\qplatformwindow.cpp:300 (virtual void QPlatformWindow::propagateSizeHints()): This plugin does not support propagateSizeHints()Any hints as to what can be done about this problem would be greatly appreciated.
-
Did you add camera permission in your Android Manifest?
-
Thanks for the quick replay
I just double checked that and I do have the android.permission.camera in the manifest file.
Also I should have put this in my original post but I also had these errors the last one has to do with the camera and I'm googling it now:
W/dalvikvm(21220): dvmFindClassByName rejecting 'org/qtproject/qt5/android/QtMessageDialogHelper'
W/dalvikvm(21220): Unable to resolve superclass of Lorg/qtproject/qt5/android/multimedia/QtSurfaceTexture; (33)
W/dalvikvm(21220): Link of class 'Lorg/qtproject/qt5/android/multimedia/QtSurfaceTexture;' failed
W/dalvikvm(21220): dvmFindClassByName rejecting 'org/qtproject/qt5/android/QtNativeInputConnection'
W/dalvikvm(21220): dvmFindClassByName rejecting 'org/qtproject/qt5/android/QtExtractedText'
W/Qt (21220): kernel\qplatformwindow.cpp:300 (virtual void QPlatformWindow::propagateSizeHints()): This plugin does not support propagateSizeHints()
W/dalvikvm(21220): VFY: unable to find class referenced in signature (Landroid/graphics/SurfaceTexture;)
W/dalvikvm(21220): VFY: unable to resolve virtual method 143: Landroid/hardware/Camera;.setPreviewTexture (Landroid/graphics/SurfaceTexture;)V