New Component jZCamView lazarus / 43-Android ---------------------------------------------------------------------- Guser979 · 2024-09-06 01:59 I am attaching a component to replace JcustomCam . In Android 14, I was unable to get a preview image with it. The new component will be registered in Android Bridges Extras. The base of the component is ZbarcodeScannerView . Note : It is customized for my project and does what I need perfectly. But of course it can be improved in several aspects to meet each person's needs. The zip file contains all the files to be placed in the corresponding folders of your LAMW. Don't forget to back up what is affected in case there are problems. I have tested enough to make sure there are no errors. Clean installations of the component mainly. I hope it is useful. Using the device's camera is not always ideal. It depends on each app. In case of errors, I can try to help. If JmPessoa gets the time, I'm sure he'll be able to make it a perfect component. https://youtu.be/G8Z5hPhfF18 UPDATE  I made a change: I deleted the Scan (bitmap) method and inserted the TakePicture ( _filename) method. How to use it? After granting permission to the camera... Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i // Initialize the cameraZCamView1.Scan(); // take picture .... attention...filename without extensionZcamview1.TakePicture('filename'); // fullpath from picture is obtained in codedata ... Just ignore codeformatZCamView1ScannerResult(Sender: TObject;codedata: string; codeformat: TBarcodeFormat); Remember that I modified an existing component ( ZbarcodeScannerView). Feel free to remove the remnants of it. Suggestion for use with floating buttons... Flash and Take Picture Caution: included the lamwdesigner.pas unit Without it, it will be impossible to change any property related to the component's Layout (Anchor, LayoutParam, etc.) Make sure to compile lazandroidwizardpack.lpk and tfpandroidbridge_pack.lpk for the changes to take effect. ---------------------------------------------------------------------- c4p · 2024-09-09 12:06 Congrats! This looks like a really useful component! ---------------------------------------------------------------------- Guser979 · 2024-09-09 17:49 My app needed to take more photos in a given time. Using jcamera, it always displays a "Repeat or OK" dialog for each photo and jcustomcam dont work. When I have time, I'll improve it, but for now it's working. Tips that work in my app: Use a specific form for the component. Use a timer (500 ms) when the form opens to activate the camera. Set the visibility of the button (take) to false and only when the form closes (when the full path of the photo is returned) set the visibility to true. This helped to avoid errors. ---------------------------------------------------------------------- jmpessoa · 2024-11-20 04:55 Hi, Guser979! New "jZCamView" committed to LAMW repository!    [visual component:  "Android Bridges"  tab ...] Thank you!  PS.: Yes, get some free time it's been really hard for me... So I am very grateful for the collaborations!