12-02-2010 12:43 AM
I am able using Torch simulator to test barcode examples. I am able to scan QR-codes, but unable to scan EAN-13 barcode. The lines are visible clearly. And I used the example EAN-13 barcode image of Wikipedia for testing. What may be the problem? Please help me to find the problem.
Thanks,
LakshmiRambabu
12-04-2010 12:28 AM
Good morning,
I found the reason for my problem. The barcode api example app is working for EAN-13 when ever I tested the application in the device. So try to check the app in the device if you are unable to get the correct result in the simulator.
Thanks,
LakshmiRambabu
05-03-2011 10:38 AM
Late post but hopefully it helps future developers:
You will need to modify the code because the "display" and "scan" buttons for the Torch are "touch screen" buttons.
Since the Bold's screen is just a screen, the display and scan buttons need to be converted into buttonfields, here's an example:
_mainScreen.setTitle("Barcode Scanner");
ButtonField scanButton = new ButtonField("Scan Barcode", ButtonField.CONSUME_CLICK | ButtonField.NEVER_DIRTY |
Field.FIELD_HCENTER | Field.FIELD_VCENTER);
scanButton.setCommand(new Command(new CommandHandler() {
public void execute(ReadOnlyCommandMetadata arg0, Object arg1) {
scanBarcode();
}
}));
_mainScreen.add(scanButton);
Hope that helps,
James
10-15-2011 02:49 PM
I had problems too with the BarcodeScanDemo in the JDK 6.0... it worked fine in the simulator, but didn't work on a real Torch device.
But when I tried BarcodeAPISample in http://supportforums.blackberry.com/t5/Java-Develo
(I only tested QR code scanning)
02-28-2012 01:36 AM
hi,
I tried to run qrcode scan application on blackberry curve os6 using blackberry api but its not working .
it is working fine for tourch. but i have to work on blackberry curve. i also want to know that for scanning qr/bar code should device has autofocus camera?