Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access scanning result from barcode scanner connected to Android device via USB port?

An external Laser barcode scanner is connected to Android POS device. I need to access the scanning result in my application. How is it possible? Need support from Android OS version 2.3 onwards.

like image 427
Febi M Felix Avatar asked Nov 14 '13 05:11

Febi M Felix


1 Answers

Most USB scanners connect via the HID profile, so Android should recognize it as a keyboard. The decoded barcode will be "typed" into the currently selected field.

If you'd like to capture the result without entering it into an editable field, see Handle barcode scanner value via Android device

like image 63
Enrico Avatar answered Oct 03 '22 07:10

Enrico