I plan to develop Barcode Decoder via Camera on Android.
Starting with the TMSFNCWXCAMERA the software starts on Android but remains only at the icon of Delphi without showing anything else.
I give permissions to use camera but nothing changes.
Something stucks it from the beggining,
Any ideas ?
Any demo ?
After adding JavaScriptHelper.jar and FNCWebChromeClient.jar
i get
Webpage not available
The webpage at file:///storage/emulated/0/Android/data/com.embarcadero.Project1/files/tmp/%7B763B9B34-5AD4-4AC2-8143-FF6DE60B388E%7D.html could not be loaded because:
We have been able to reproduce the issue. A fix will be coming up soon, but in the meantime you can set the FileLocation public property as a workaround. This will force the camera to load from an online URL instead of a local file.
procedure TForm1.FormCreate(Sender: TObject);
begin
TMSFNCWXCamera1.FileLocation := cflOnline;
end;
Barcode decoder via camera
TMSFNCWXBarcodeDecoder1Decoded
fires automatically as soon as a barcode is preview in camera
or should i do something to read the barcode ?
The event might not trigger immediately, but as soon as it gets a clear view on the barcode and it's able to read it (for example, no camera shaking because the barcode lines will blur). The OnDecoded event will automatically trigger in that case.
You can check the Demo folder and see the BarcodeDecoder demo for FMX. Just don't forget to add the necessary libraries for Android first and you might also want to change the CameraType.
This is due to an incompatibility between projects created in earlier Delphi versions and Delphi 11.
Right-click the Libraries folder in your project, and click Revert System Files to Default. (For both 32-bit and 64-bit android targets). Then try to Save, Clean and finally Build.
The BarcodeDecoder Demo has the same behaviour like mine software
It can not fires TMSFNCWXBarcodeDecoder1Decoded
with any barcode
i tested a lot of barcode128 but nothing
If you have Chrome installed on your PC, can you navigate to chrome://inspect/#devices while your device is connected to your PC and the application is running? You should see your device appear in the list and you'll be able to open the developer tools for the embedded browser. Then check the browser console to see if any error messages appear.
Were you able to debug the embedded browser of your running Android application? It might indeed be an issue related to the Android version and it would help to see if there are any error messages.