wood burning stoves 2.0*
The moose likes Android and the fly likes Barcode reading using a blue tooth scanner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Barcode reading using a blue tooth scanner" Watch "Barcode reading using a blue tooth scanner" New topic

Barcode reading using a blue tooth scanner

Swastik Dey

Joined: Jan 08, 2009
Posts: 1447

Following is my sample code snippet to read bar code from blue tooth scanner in my android application.

However I am getting an abrupt behavior as follows
1. When I read a bar code, the read method on input stream is executed thrice means I am getting the same bar code thrice.
2. Any subsequent read of a new bar code does not return the new value, rather it's returning the bar code which was read first and that also three times.

As a note my environment is as follows
1. Android os version 1.5
2. backport-android-bluetooth2 is the blue tooth library
3. Baracoda pencil2 is the blue tooth scanner.

Any help in this regard will be highly appreciated.

It is sorta covered in the JavaRanch Style Guide.
subject: Barcode reading using a blue tooth scanner
Similar Threads
How to connect to the internet behind proxy ?
Reading special Chars from EditText
connection timed out in java
set video wallpaper in android
Bluetooth blues (stream related I believe)