V Victor Alexander Andara New Member Licensed User Longtime User Jun 1, 2017 #1 Hello!! I am developing an app and should allow to read barcodes using the scanner of the equipment (Zebra TC55), I use the example code attached by Garin and modify what indicated by Erel (In the link: https://www.b4x.com/android/forum/t...de-scan-with-intents-broadcastreceiver.56945/ ) but I dont get the barcode readed by the scanner. I'm using a Zebra TC55 - Adjust the Intent in the Profile0 (Default) of datawedge. - Adjust the manifest (See attached images) When reading a barcode the service is activated (Sub Service_Start (StartingIntent As Intent)) but don't get the code readed in the Intent var Please can you help me. Attached modified source code. Attachments ScanTest.zip ScanTest.zip 25 KB · Views: 953 TC55_Datawedge_config1.JPG 92.2 KB · Views: 1,358 TC55_Datawedge_config2.JPG 108.5 KB · Views: 1,592 Print_service_start_on_read_barcode.png 58.9 KB · Views: 1,298
Hello!! I am developing an app and should allow to read barcodes using the scanner of the equipment (Zebra TC55), I use the example code attached by Garin and modify what indicated by Erel (In the link: https://www.b4x.com/android/forum/t...de-scan-with-intents-broadcastreceiver.56945/ ) but I dont get the barcode readed by the scanner. I'm using a Zebra TC55 - Adjust the Intent in the Profile0 (Default) of datawedge. - Adjust the manifest (See attached images) When reading a barcode the service is activated (Sub Service_Start (StartingIntent As Intent)) but don't get the code readed in the Intent var Please can you help me. Attached modified source code.
Erel B4X founder Staff member Licensed User Longtime User Jun 2, 2017 #2 What is the output of: Code: Log(StartingIntent) Log(StartingIntent.ExtrasToString) Upvote 0
V Victor Alexander Andara New Member Licensed User Longtime User Jun 3, 2017 #3 Hi Erel!! Thank you very much With this code the barcode read by the scanner is captured Code: Sub Service_Start (StartingIntent As Intent) 'Log(StartingIntent.ExtrasToString) Dim i As String i = StartingIntent.GetExtra("com.symbol.datawedge.data_string") Log(i) CallSubDelayed2(Main, "GetResult",i) End Sub Upvote 0
Hi Erel!! Thank you very much With this code the barcode read by the scanner is captured Code: Sub Service_Start (StartingIntent As Intent) 'Log(StartingIntent.ExtrasToString) Dim i As String i = StartingIntent.GetExtra("com.symbol.datawedge.data_string") Log(i) CallSubDelayed2(Main, "GetResult",i) End Sub
B Bernhard P. Member May 31, 2020 #4 Victor Alexander Andara said: Hi Erel!! Thank you very much With this code the barcode read by the scanner is captured Code: Sub Service_Start (StartingIntent As Intent) 'Log(StartingIntent.ExtrasToString) Dim i As String i = StartingIntent.GetExtra("com.symbol.datawedge.data_string") Log(i) CallSubDelayed2(Main, "GetResult",i) End Sub Click to expand... Hallo Viktor, can you pls attach a sample Project with that Code? Thank you in advance?! Upvote 0
Victor Alexander Andara said: Hi Erel!! Thank you very much With this code the barcode read by the scanner is captured Code: Sub Service_Start (StartingIntent As Intent) 'Log(StartingIntent.ExtrasToString) Dim i As String i = StartingIntent.GetExtra("com.symbol.datawedge.data_string") Log(i) CallSubDelayed2(Main, "GetResult",i) End Sub Click to expand... Hallo Viktor, can you pls attach a sample Project with that Code? Thank you in advance?!