aviario Active Member Licensed User Longtime User Jul 30, 2015 #1 Hello, We are using Unitech PA700 , we want to use Barcode. But unitech only provide Java class. Could anybody help to me to use that in B4A?. 1.1. Enable/Disable scanner Intent intent = new Intent(); intent.setAction("unitech.scanservice.scan2key_setting"); intent.putExtra("scan2key", true); sendBroadcast(intent); 1.2. Receive scanned data String SSI_param_data = ""; Intent sendIntent = new Intent("unitech.scanservice.data"); sendIntent.putExtra("text", SSI_param_data); sendBroadcast(sendIntent); 1.3. Programming example Programming Source-code example is available as “keypad-test” at https://portal.unitech.eu/Files/Technical/PA700Scanner(key)Test_1.0.zip Here we have documentation: http://www.sico.es/descargas/manualunitech.zip Many thanks
Hello, We are using Unitech PA700 , we want to use Barcode. But unitech only provide Java class. Could anybody help to me to use that in B4A?. 1.1. Enable/Disable scanner Intent intent = new Intent(); intent.setAction("unitech.scanservice.scan2key_setting"); intent.putExtra("scan2key", true); sendBroadcast(intent); 1.2. Receive scanned data String SSI_param_data = ""; Intent sendIntent = new Intent("unitech.scanservice.data"); sendIntent.putExtra("text", SSI_param_data); sendBroadcast(sendIntent); 1.3. Programming example Programming Source-code example is available as “keypad-test” at https://portal.unitech.eu/Files/Technical/PA700Scanner(key)Test_1.0.zip Here we have documentation: http://www.sico.es/descargas/manualunitech.zip Many thanks
Erel B4X founder Staff member Licensed User Longtime User Jul 30, 2015 #2 You can create such intents with this code: Code: Copy Dim p As Phone Dim in As Intent in.Initialize("unitech.scanservice.scan2key_setting", "") in.PutExtra("scan2key", True) p.SendBroadcastIntent(in) The second one should be similar. Upvote 0
You can create such intents with this code: Code: Copy Dim p As Phone Dim in As Intent in.Initialize("unitech.scanservice.scan2key_setting", "") in.PutExtra("scan2key", True) p.SendBroadcastIntent(in) The second one should be similar.
aviario Active Member Licensed User Longtime User Aug 25, 2015 #3 Hello. We have received the Unitech PA700 and we tested the code . But does nothing . In theory this code, turn on the barcode reader and scan a code , but does not turn on the reader. We do not know if some library is missing or is not communicating with the service thats run (scanservice). We are totally lost . They can help us ? Thank you Upvote 0
Hello. We have received the Unitech PA700 and we tested the code . But does nothing . In theory this code, turn on the barcode reader and scan a code , but does not turn on the reader. We do not know if some library is missing or is not communicating with the service thats run (scanservice). We are totally lost . They can help us ? Thank you
aviario Active Member Licensed User Longtime User Aug 25, 2015 #4 We decompile the test program. with it we turn on the reader and reads the barcode , but we do not see, nowhere to enter the library to use. Sorry for my english. Upvote 0
We decompile the test program. with it we turn on the reader and reads the barcode , but we do not see, nowhere to enter the library to use. Sorry for my english.
DonManfred Expert Licensed User Longtime User Aug 25, 2015 #5 aviario said: but we do not see, nowhere to enter the library to use. Click to expand... There is no library which is used... The demo app is sending out broatcasts (see MainActivity.java). And the scanner will return the data with sending a broadcast too (see UnitechReciever.java). You need to use an Broadcast-reciever to recieve the data. Or write an java-wrapper for all this Last edited: Aug 25, 2015 Upvote 0
aviario said: but we do not see, nowhere to enter the library to use. Click to expand... There is no library which is used... The demo app is sending out broatcasts (see MainActivity.java). And the scanner will return the data with sending a broadcast too (see UnitechReciever.java). You need to use an Broadcast-reciever to recieve the data. Or write an java-wrapper for all this