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
packiaraj
Posts: 231
Registered: ‎07-09-2009
My Device: Not Specified
Accepted Solution

Barcode recognition

Hi to all,

              I'm developing an application to read barcode..can any one pls tell me any reference Url link or sample for reading barcode.. i have already searched the below link and i got some idea and also i got sample code but i dont know how to use that code...

 

http://supportforums.blackberry.com/t5/Java-Development/barcode-reading-for-8300/m-p/395783#M77091

 

http://supportforums.blackberry.com/t5/Java-Development/Barcode-reader-SDK-or-library/m-p/238641#M37...

 

Please any one help and explain this process..

 

Thanks,

Packiaraj M

Contributor
morpheusghost
Posts: 34
Registered: ‎07-30-2010
My Device: Not Specified

Re: Barcode recognition

[ Edited ]

Well you can try google's zxing library!! It's a library for barcode scanning!! I used that and it worked like a charm!!!

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: Barcode recognition

From the rumor mill, this capability is integrated into OS 6.0.

Developer
packiaraj
Posts: 231
Registered: ‎07-09-2009
My Device: Not Specified

Re: Barcode recognition

[ Edited ]

Hi morpheusghost and peter thanks for your response.

 

Yes,now i'm using google's zxing but it throws error related package not found (javax.microedition.amms.control.camera)

 

i'm using 4.5 JDE for developing..And i have searched that package but i didnt get that package....

 

Google's zxing code working for u? which version u have developed?

 

 

Thanks,

Packiaraj

Contributor
morpheusghost
Posts: 34
Registered: ‎07-30-2010
My Device: Not Specified

Re: Barcode recognition

I'm working with the 1.4 version

Contributor
morpheusghost
Posts: 34
Registered: ‎07-30-2010
My Device: Not Specified

Re: Barcode recognition

Actually for your info all u have to do is to take the rim's and core's src folders and insert the packages to yous src folder of your project. I think this could help you!!

Developer
packiaraj
Posts: 231
Registered: ‎07-09-2009
My Device: Not Specified

Re: Barcode recognition

 

I cant get u friend can u explain me clearly

 

r u using JDE or other tool for developing?

 
Can u give sample code for barcode recognition. or any reference URL.

 

Thanks,

Packiaraj

Developer
packiaraj
Posts: 231
Registered: ‎07-09-2009
My Device: Not Specified

Re: Barcode recognition

Actually i'm JDE for developing, i have done as u said above just insert the packages from core to rim then it throws an error in javax.microedition.amms.control.camera  package error any idea?

Contributor
morpheusghost
Posts: 34
Registered: ‎07-30-2010
My Device: Not Specified

Re: Barcode recognition

I'm using Eclipse plugin for Blackberry. Actually the code is in the library that you 've downloaded.

But lets take it from the begining.

 

1. Download Blackberry plugin for Eclipse

2. Download zxing library 1.4 from http://code.google.com/p/zxing/downloads/list

3. Take the src files from rim's and core's folders from the zxing library after you unzip it and insert them into the src folder of your Blackberry project.

 

Run the simulator and scan a barcode image!!

That's it. If u have any question please ask!!!

Developer
packiaraj
Posts: 231
Registered: ‎07-09-2009
My Device: Not Specified

Re: Barcode recognition

Ok thank you so much morpheusghost.. Actually i have downloaded zxing1.5 i will download 1.4 and check it and once agian thanks for ur explaination.

 

Thanks,

Packiaraj M