Android Question QR reader and torch ?

Discussion in 'Android Questions' started by Devv, Feb 2, 2015.

  1. Devv

    Devv Active Member Licensed User

    hi

    i found b4azxing lib for scanning qr code it is pretty good bu it does not have torch option

    and i found the advanced camera lib that can turn on the torch

    every thing is working when using it alone (when i use qr and flash together it will not work)
    i think because every lib is trying to control the camera so only the first one can work

    some guy here in the forum made advanced b4azxing the torch work with volume up / down
    but it is making force close

    is their is any flash lib that could work with b4azxing ?
    or any qr reader that work with acl camera ?
     
  2. Johan Schoeman

    Johan Schoeman Expert Licensed User

    No, there is no such library. When Zxing scanner is active it controls the camera and until such time as what the camera is released nothing can access the camera (or the torch for that matter)

    What is the exact problem that you have here?:
    ....advanced b4azxing the torch work with volume up / down but it is making force close...
     
    Devv likes this.
  3. Devv

    Devv Active Member Licensed User

    when i use any version on advanced b4azxing with my stock SonyEricsson ARCs rom
    when i try to turn the torch on (voulume or touch) it turn on and when i retouch the screen it turn off (so far so good)
    the second time i torch the screen or use the volume up / down the app give me forced close message
     
  4. Johan Schoeman

    Johan Schoeman Expert Licensed User

    Please check if it behaves the same way when you use QRCPV4 that you can find here
    http://www.b4x.com/android/forum/threads/qr-code-library.41408/#post-259448

    It only uses the volume up/down (not the touch event) to turn on/ off the torch while the scanner is active.
     
    Devv likes this.
  5. Devv

    Devv Active Member Licensed User

  6. Johan Schoeman

    Johan Schoeman Expert Licensed User

    The libs (jar and xml files) related to the scanning part of the project are in the /files folder of the project. Copy them to your additional libraries folder. The other libs that are required is available on the B4A forum for download (ColorByName, miscUtil, Phone, Reflection, RSImageProcessing, StringFunctions, Animation)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice