B4A Library Barcode Scanner - 100% embedded within B4A (15 Feb 2016 : New library files in Post #105)

romario87027

Active Member
Licensed User
Longtime User
I followed your instructions and now the camera is open.
But it has to work on Sdk Version 22 ?
 

Johan Schoeman

Expert
Licensed User
Longtime User
I followed your instructions and now the camera is open.
But it has to work on Sdk Version 22 ?
Now you need to browse the forum to see how you need to add RuntimePermissions to you B4A code when using SDK 26+. Change the targetSDK in the manifest back to 30 (or 29) and then add the required RTP code to the B4A project.
 

Mwinsor

Member
Licensed User
Longtime User
I am having the same problem with the camera. It does not turn on. Does this not run in B4XPages? The sample program works fine but when I move it to my project (even with the same manifest), the camera does not turn on
 

syerif

Active Member
Licensed User
Longtime User
it is posible get capture image from scan result?
 

Johan Schoeman

Expert
Licensed User
Longtime User
Probably one of the very first B4A libraries to scan barcodes that were 100% embedded in B4A. And now, some 9 years later, still working when only had to add RuntimePermissions for the camera. Have tested it with B4A V13.0 on an Android 13 device with target SDK set to 34

ZXing was amazing....me thinks


 

Attachments

  • b4aZXscannerLiveViewNew.zip
    77.9 KB · Views: 185
  • b4aLibFiles.zip
    50.6 KB · Views: 196

OMS

Member
Many Thanks for your nice job.
Can you please add 2 feature :
1- return type of barcode format , (zxslv.BarcodeFormat returns empty string)
2- let user access to the scanned bmp data (as a property) , in some cases users may need to save it
 

Johan Schoeman

Expert
Licensed User
Longtime User
Many Thanks for your nice job.
Can you please add 2 feature :
1- return type of barcode format , (zxslv.BarcodeFormat returns empty string)
2- let user access to the scanned bmp data (as a property) , in some cases users may need to save it
Here you go:
1. Copy the attached Jar and XML to your B4A additional Library folder - it should show in the B4A IDE as V1.05
2. Run the attached B4A project
3. In the B4A IDE you might have to do: Tools -> Jetifier (AndroidX) and then Tools -> Clean Project


 

Attachments

  • zxScannerLiveView.jar
    55.5 KB · Views: 143
  • zxScannerLiveView.xml
    12.1 KB · Views: 127
  • b4aZXscannerLiveViewTorchOnOff.zip
    78.2 KB · Views: 146
  • src.zip
    31.3 KB · Views: 135

jitendra ankale

New Member
Licensed User
I need above code to impliment and
I am From India and I want to send donation but the link not allowing, giving warning
the message below to country donations to this recipient aren't supported in this country





 

Johan Schoeman

Expert
Licensed User
Longtime User
I need above code to impliment and
I am From India and I want to send donation but the link not allowing, giving warning
the message below to country donations to this recipient aren't supported in this country





No donation required. Use it if it is useful to you.
 

Johan Schoeman

Expert
Licensed User
Longtime User
It also works with Android 15...
 

drgottjr

Expert
Licensed User
Longtime User
and android 16 and sdk 35 and teeny-tiny barcode on back of small hard drive and direct from camera preview
(as well as from bitmap, of course). all hail @johanschoeman for bringing it to us.
 

Attachments

  • zxing.png
    214.8 KB · Views: 48
Cookies are required to use this site. You must accept them to continue using the site. Learn more…