Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
fsellanes
Posts: 125
Registered: ‎08-11-2011
My Device: Blackberry Smartphone 9780
My Carrier: -
Accepted Solution

Scan codebar with camera (no QR)

Hello, I am trying to scan a codebar with the blackberry camera, this work fine when I use 

 

 

// The first thing going in is a list of formats. We could look for
// more than one at a time, but it's much slower.
Vector formats = new Vector();
formats.addElement(BarcodeFormat.QR_CODE);
hints.put(DecodeHintType.POSSIBLE_FORMATS, formats);

 

but when I try to use :

 

formats.addElement(BarcodeFormat.CODABAR);

 

and I try to run the application I get "can't find entry point", and my app not start.

 

I suppose CODABAR mean :

 

 codabar.png

 

 

 

 

 

 

 

 

---------------------------------------------------------------------

My good english is beceause i dont speak english
Please use plain text.
Developer
fsellanes
Posts: 125
Registered: ‎08-11-2011
My Device: Blackberry Smartphone 9780
My Carrier: -

Re: Scan codebar with camera (no QR)

[ Edited ]

Well, the problem was that "BarcodeFormat.CODABAR" belongs to 7.0 OS, and I am using 6.0. I hate BlackBerry.

There is another way, that I can scan standard code bar with OS 6.0 ?

 

EDIT: Solved with :

 

BarcodeFormat.CODABAR.CODE_128

BarcodeFormat.CODABAR.CODE_39

BarcodeFormat.CODABAR.EAN_13

BarcodeFormat.CODABAR.UPC_A

BarcodeFormat.CODABAR.UPC_E


---------------------------------------------------------------------

My good english is beceause i dont speak english
Please use plain text.