[Solved]How to make an android app to scan datamatrix barcode? lazarus / 43-Android ---------------------------------------------------------------------- Jonvy · 2023-03-10 01:09 Hello all, I'm new for LMAW, now I want to wirte an app to scan barcode, I runned the demo AppZBarcodeScannerViewDemo1, and find it only can scan 1D barcode and QR 2D barcode. But for my work, I should mostly scan datamatrix barcode. Is there any way to scan datamatrix barcode with lazarus? I can not find resource for it, can anyone help me? Thanks! Jonvy ---------------------------------------------------------------------- loaded · 2023-03-10 05:12 Hi , You can use the "AppIntentDemoZXing1" demo for this. The "Barcode Scanner By ZXing Team" application must be installed on the device beforehand. You can install it from Play Store. ---------------------------------------------------------------------- Jonvy · 2023-03-11 02:52 Hello loaded, I tried to run this demo, but I get following error(See attachment). How can I do, where is the compileDebugRenderscript? Also I can not find gradle.properties file in my directory. Jonvy ---------------------------------------------------------------------- loaded · 2023-03-11 07:43 Yes you are right, it throws error in gradle. I don't know why, it seems like research is needed to solve the problem. To get rid of such errors I also use ant for faster compilation. It's working fine for me too. ---------------------------------------------------------------------- Jonvy · 2023-03-11 12:10 Quote from: loaded on March 10, 2023, 06:12:48 amHi , You can use the "AppIntentDemoZXing1" demo for this. The "Barcode Scanner By ZXing Team" application must be installed on the device beforehand. You can install it from Play Store. I made some change to the gradle file to make the app work. Because I'm in China, I can not use Play store, so  Barcode Scanner zxing app is not possible installed. However, I can find the zxing core from following address, https://repo1.maven.org/maven2/com/google/zxing/core/3.3.0/ But how can I compile the zxing package into this demo app, so I can use it without zxing Scanner app? Jonvy ---------------------------------------------------------------------- loaded · 2023-03-11 13:08 I think jar files can be added to LAMW but I don't know how. If someone who knows the subject better than me can help, we will learn together. If you can't use the play store. You can also download it from another apk download site. Another option is if the device you are using has a built-in browser, you can do some research and try to access and run it using intent. ---------------------------------------------------------------------- jmpessoa · 2023-03-12 17:52 QuoteI think jar files can be added to LAMW...... Yes! "jBarcodeGen"  use "zxing-3.4.0.jar"....  the demo is here:   "AppBarcodeGenDemo1" Edited: I'm building a new component "jcZXingBarcodeScan" based on  "ZXing Android Embedded" library.... wait until I finish some tests... ---------------------------------------------------------------------- loaded · 2023-03-13 13:18 Quote from: jmpessoa on March 12, 2023, 06:52:34 pmI'm building a new component "jcZXingBarcodeScan" based on  "ZXing Android Embedded" library.... wait until I finish some tests... Master jmpessoa; Don't give us fish, teach us how to fish.  In fact, it will be much more appreciated if you record and publish this process as a video. ---------------------------------------------------------------------- jmpessoa · 2023-03-13 17:44 QuoteDon't give us fish, teach us how to fish. https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/docs/ho w_to_create_new_components.txt ---------------------------------------------------------------------- loaded · 2023-03-14 05:02 First of all, thank you very much for all your efforts, Master jmpessoa. Thanks to you, we will now be able to catch bigger fish. I want to express an opinion that comes to my mind about a situation that I think is related to the subject, it is not a request or a request; I am currently interested in SAF (Open files using storage access framework) to be used in a project. https://developer.android.com/guide/topics/providers/document-provider It would seem like it would be better to replace this with the File Open dialog (jopendialog) component in LAMW. SAF also supports file saving. This can also be used as a File Save Dialog (jSavedialog). I think jSavedialog is a missing issue in LAMW! And this lack It can be fixed by the above method. ---------------------------------------------------------------------- jmpessoa · 2023-03-15 17:56 Done! New "ZXingBarcodeScan" component ! [Android Bridges jCenter tab] reference:  https://github.com/journeyapps/zxing-android-embedded warning: need "gradle"  and Min device API >= 24 LAMW demo:  "AppJCenterZXingBarcodeScanDemo1" Thanks to All! ---------------------------------------------------------------------- Jonvy · 2023-03-18 11:48 Thanks jmpessoa, Your demo and component work well, I'll  study it and try to use it in my app. By the way, I see here, google has its own ml-kit for barcode scanning also. I don't know how to use it. Is it possible to add it to LMAW also? https://developers.google.com/ml-kit/vision/barcode-scanning/android