B4A Library QRCodeReaderView - new release

the new Lib. Release seems to have a problem when AutofocusInterval is set to something, the scanning is also affected relative to the ms value,

like for example, I put AutofocusInterval = 6000, then scanning qr code takes about that much time as well, is this an intended behavior?

Running it on Android 6.0
 
Last edited:

Johan Schoeman

Expert
Licensed User
Longtime User
It is such an old lib. I suggest you use @Erel mobile vision scanner.
 

biometrics

Active Member
Licensed User
Longtime User
It is such an old lib. I suggest you use @Erel mobile vision scanner.
Hi Johan,

Would you please link to @erel’s thread for the mobile vision scanner.

edit: this one?

 
Last edited:

Johan Schoeman

Expert
Licensed User
Longtime User
Yes
 

Pawan_91

Member
Torchenabled is not working.
Does it require any other permissions to turn on the flash while scanning.
Has anyone tried setting Torchenabled to True and confirm if flashlight works along with scanner?
 

Johan Schoeman

Expert
Licensed User
Longtime User
Torchenabled is not working.
Does it require any other permissions to turn on the flash while scanning.
Has anyone tried setting Torchenabled to True and confirm if flashlight works along with scanner?
I am using B4A V13.0 on an Android 13 device with target SDK set to 34 and the flash/torch is working. Attached the B4A sample project and the library files. Copy the library files to your B4A additional library folder.

What device are you using and what Android version do you have on your device?

Note that the torch/flash will only work once the scanner is active.
 

Attachments

  • NewQRCodeReaderViewLibFiles.zip
    26.4 KB · Views: 53
  • b4aNewQRCodeReaderView.zip
    10.6 KB · Views: 45
Last edited:

Pawan_91

Member
Thanks a lot Johan it is working now
After referring your code I found I was missing the below manifest entries : -

XML:
AddManifestText(<uses-feature android:name="android.hardware.camera" android:required="true" />)
AddManifestText(<uses-feature android:name="android.hardware.camera.autofocus" android:required="true" />)
AddManifestText(<uses-feature android:name="android.hardware.camera.flash" android:required="true" />)
 

Johan Schoeman

Expert
Licensed User
Longtime User
Torchenabled is not working.
Does it require any other permissions to turn on the flash while scanning.
Has anyone tried setting Torchenabled to True and confirm if flashlight works along with scanner?
So, I guess you got it working.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…