Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android Camera Will Not Display

Android Camera Will Not Display

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    earthcrosser
    wrote on last edited by
    #1

    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-v7a

    here 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.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vincent007
      wrote on last edited by
      #2

      Did you add camera permission in your Android Manifest?

      1 Reply Last reply
      0
      • E Offline
        E Offline
        earthcrosser
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved