TMSFNCWXCAMERA ON ANDROID

Here it works. So it's unclear what exactly is happening on your device. Do you have another device to test with? Below is a screenshot of the code being scanned.

The application was deployed from RAD Studio 11, on an Android 11 device.

i tested at
SAMSUNG GALAXY S9+ with ANDROID 10
XIAOMI MI MAX 2 with ANDROID 7.1.1
XIAOMI MI 11 LITE 5G with ANDROID 11
it has exactly the same behaviour, can not read even one barcode.

But let's describe my project

new FMX application Android 64

TMSFNCWXCamera1: TTMSFNCWXCamera;
TMSFNCWXBarcodeDecoder1: TTMSFNCWXBarcodeDecoder;

Button1: TButton;
Button2: TButton;
Memo1: TMemo;

Button1 - > TMSFNCWXCamera1.Start
Button2 - > TMSFNCWXCamera1.Stop
TMSFNCWXBarcodeDecoder1 connected with TMSFNCWXCamera1
barcodetype --- > bdtcode128

TMSFNCWXBarcodeDecoder1Decoded --> Memo1.Lines.Add(AResult);

run

app permissions camera, files and media,location,phone

same tests with application DEMO (TMS)

Can you try to update your Chrome browser on your devices first and test again?

If that still does not work, please try to debug the embedded browser.

Click the inspect button and see if there are any error messages on the console tab while you are trying to scan barcodes.

i did update Chrome on PC and Chrome on Android and all the procedure with inspect
When i scan barcodes i do not see any message

There is an error but it's unrelated to the camera.

I can see you are using the online version of the camera. Can you try offline too? A fix for the previous online/offline issue has already been released.

how can i try the offline version of the camera ?

It should be offline by default.
Just don't set the TMSFNCWXCamera1.FileLocation property to cflOnline.

Again, the demo should also use the offline version. It's unclear why you end up with the online version, unless you are setting the FileLocation property as an extra.

As I said, a fix for this issue has already been released. If you are on the latest versions of TMS FNC Core and TMS FNC WX Pack then you should be able to use the camera without the need of setting FileLocation.

after install latest versions, i can not use Back camera
this assignment is not working
TMSFNCWXCamera1.CameraType:=wctBack;

but the reading of a barcode is going better !!

The CameraType fix will be included in the next release. On the other hand, an incremental source update was sent to your private messages 9 days ago which contains the fix for wctBack. You'll need to replace your current source files with the ones included in that ZIP.

Now it is OK !
Back camera is working !
BarCodes can be decoded !

Thank you for your support !

1 Like