Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36921

AndroidManifest.xml requires by default a back camera

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.0
    • 5.2.1
    • Extras: Android
    • None
    • Android Playstore
    • 53dfdf45974b2a6ecb9debb6c7d916e2d0d3093e

    Description

      After publishing my application in the play store I am not seing my
      application on Nexus 7 first gen. Looking at some forums I found that
      since this model has no back camera and only a front one it is excluded
      when the manifest requires one with "android.permission.CAMERA".

      I tried to add the line '<uses-feature android:required="false"
      android:name="android.hardware.camera"/>' in my AndroidManifest.xml but
      this file is re-generated by the build system and anyway the line
      '<uses-feature android:name="android.hardware.camera" />' is added to
      the AndroidManifest.

      In Google's documentation they suggest [1] to use instead
      'android.hardware.camera.any' which means 'The application uses at least
      one camera facing in any direction. Use this in preference to
      android.hardware.camera if a back-facing camera is not required.'

      Other option would be not to require the camera at all unless the application requires it, leaving to the developper the task to add the option in the Manifest.

      [1]
      http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ylopes Yoann Lopes
            bdoin Bruno Coudoin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes