M Mark Stuart Well-Known Member Licensed User Longtime User Dec 16, 2025 #1 With Erel's BARCODE READER app using the Camera library, I see it has this reference: #AdditionalJar: com.google.android.gmslay-services-vision And in the B4XMainPage - CreateDetector function it references what looks like more internet references: B4X: Copy builder.InitializeNewInstance("com/google/android/gms/vision/barcode/BarcodeDetector.Builder".Replace("/", "."), Array(ctxt)) Dim barcodeClass As String = "com/google/android/gms/vision/barcode/Barcode".Replace("/", ".") So I'm wondering if the code is requiring an internet connection while being used? The "List Permissions" button lists: android.permission.INTERNET My app solution will not have internet connection while being used to scan barcodes. Appreciate a response. Regards, Mark Stuart
With Erel's BARCODE READER app using the Camera library, I see it has this reference: #AdditionalJar: com.google.android.gmslay-services-vision And in the B4XMainPage - CreateDetector function it references what looks like more internet references: B4X: Copy builder.InitializeNewInstance("com/google/android/gms/vision/barcode/BarcodeDetector.Builder".Replace("/", "."), Array(ctxt)) Dim barcodeClass As String = "com/google/android/gms/vision/barcode/Barcode".Replace("/", ".") So I'm wondering if the code is requiring an internet connection while being used? The "List Permissions" button lists: android.permission.INTERNET My app solution will not have internet connection while being used to scan barcodes. Appreciate a response. Regards, Mark Stuart
Johan Schoeman Expert Licensed User Longtime User Dec 16, 2025 #2 I think it needs an initial internet connection to download some dependencies. Once downloaded the internet connection should no longer be required Upvote 0
I think it needs an initial internet connection to download some dependencies. Once downloaded the internet connection should no longer be required
Johan Schoeman Expert Licensed User Longtime User Dec 16, 2025 #3 1D and 2D Barcode Scanner with ZXING - another Barcode Scanner that is 100% embedded in B4A The attached project wraps the ZXING part of this Github project. I have not tested all the barcode formats but it should scan the following types: BarcodeFormat.UPC_A BarcodeFormat.UPC_E BarcodeFormat.EAN_13 BarcodeFormat.EAN_8 BarcodeFormat.RSS_14 BarcodeFormat.CODE_39 BarcodeFormat.CODE_93... www.b4x.com You can change this UI to your liking.... Upvote 0
1D and 2D Barcode Scanner with ZXING - another Barcode Scanner that is 100% embedded in B4A The attached project wraps the ZXING part of this Github project. I have not tested all the barcode formats but it should scan the following types: BarcodeFormat.UPC_A BarcodeFormat.UPC_E BarcodeFormat.EAN_13 BarcodeFormat.EAN_8 BarcodeFormat.RSS_14 BarcodeFormat.CODE_39 BarcodeFormat.CODE_93... www.b4x.com You can change this UI to your liking....