My question is just about reading value from EAN13 barcode to TEdit field. I developed an android application with Delphi Firemonkey which should read 1D Ean13 barcode then it’ll process with databases after all give us a result which is correct or not.
Basically, I’m using stored procedure for making these steps but in Firemonkey form, my TEdit field is too slow for 1D barcode scanner. My beta test device is Urovo i6200s. Android version is 4.1.2
Now, I’m trying to increase scan speed but I couldn’t do it in FMX. Webservice is calling result in 0.0052 second. But TEdit needs almost 2.5 seconds for writing my value to Edit1.Text
By the way I tried to scan my barcode and write it to Default Android Browser and input field in Message application, the result is so fast like my webservice results. Also I tried to write Edit1 without Event references, it’s still very very slow.
Is there any solution, optimization or anything I can do?
Edit: Here is my code for asking: But this is not about my code. Its about TEdit.
procedure TfrmMain.eBarcodeChangeTracking(Sender: TObject);
lblStatus.Text := ”;
if eBarcode.Text.Length = 12 then
result := -1;
result := MyService.CheckBarcode(eBarcode.Text);
on E: Exception do
ShowMessage(‘Error occurred while reading barcode’);
eBarcode.Text := ”;
if result = 0 then
lblStatus.Text := ‘OK’;
lblStatus.Text := ‘Failed’;