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 TORCH PROBLEM.
Forum Updated to NodeBB v4.3 + New Features

ANDROID TORCH PROBLEM.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 543 Views 1 Watching
  • 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
    edoardo.videx
    wrote on 15 Jan 2019, 16:46 last edited by
    #1

    Hi, i want to turn on the flash light of the Android Phone. I added the Flash and Camera permission . But not work.
    Someone can help me?

        Torch{
            id:torch
            power:75
            enabled: true
        }
    
    P 1 Reply Last reply 15 Jan 2019, 17:33
    0
    • E edoardo.videx
      15 Jan 2019, 16:46

      Hi, i want to turn on the flash light of the Android Phone. I added the Flash and Camera permission . But not work.
      Someone can help me?

          Torch{
              id:torch
              power:75
              enabled: true
          }
      
      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 15 Jan 2019, 17:33 last edited by
      #2

      @edoardo.videx from Torch QML type documentation:

      If the torch functionality is shared with the camera flash hardware, the camera will take priority over torch settings and the torch is disabled

      Could it be the case? that you're also using the camera at the same time...

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • E Offline
        E Offline
        edoardo.videx
        wrote on 16 Jan 2019, 07:17 last edited by edoardo.videx
        #3

        @Pablo-J-Rogina
        I've try to do this:

            Camera {
                id: camera
                viewfinder.resolution: "640x480"
                imageProcessing.whiteBalanceMode: CameraImageProcessing.WhiteBalanceFlash
               flash.mode: Camera.FlashTorch
        

        and i create a function for force the flash on

            function flash_start()
            {
                camera.unlock()
                camera.flash.mode = Camera.FlashOn
                camera.flash.mode = Camera.FlashTorch
            }
        

        But nothing works.

        1 Reply Last reply
        0

        1/3

        15 Jan 2019, 16:46

        • Login

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