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. Camera supportedViewfinderResolutions and viewfinder.resolution does not work in Android phone
Forum Updated to NodeBB v4.3 + New Features

Camera supportedViewfinderResolutions and viewfinder.resolution does not work in Android phone

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 801 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.
  • V Offline
    V Offline
    Vincent007
    wrote on last edited by Vincent007
    #1

    I want to confirm whether Camera supportedViewfinderResolutions works in Android phone. I get an empty list after I call supportedViewfinderResolutions. The mobile phone I test is S7.

    I tried using Android JNI class "AndroidCameraPrivate". getSupportedPreviewSizes of AndroidCameraPrivate does work.

    Therefore, I don't know why Camera supportedViewfinderResolutions does not work.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      It doesn't seem to work on the QCamera side either. Android version could generally be more relevant here than a cryptic phone model. The reason? Perhaps the resolution is not exposed in the old API which Qt uses; your phone probably has at least Lollipop and with it Android's camera API version 2. Or perhaps there is a lack of developer resources at Qt for the camera software.

      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