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

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 412
Registered: ‎04-04-2012
My Device: BlackBerry Z30/Z10/Z10LE/Q10/PlayBook

barcodescanner example

Has anyone been able to compile the barcodescanner example? There seems to be a lot of things missing or misconfigured.

Regular Contributor
Posts: 94
Registered: ‎12-02-2011
My Device: non-Blackberry user
My Carrier: none

Re: barcodescanner example

I just tried to compile it and it worked fine.  There were these warning messages during compile:

WARNING: Failure to find: ../src/*.hpp
WARNING: Failure to find: ../src/*.h
WARNING: Failure to find: ../src/*.hpp
WARNING: Failure to find: ../src/*.h

 

Probable because there seems to be no .hpp or h files. only one main.cpp file.

 

If you look in its sub directory : barcodereader/arm/o.le-v7-g (assuming you did debug mode) you will see the executable

Highlighted
Regular Contributor
Posts: 94
Registered: ‎12-02-2011
My Device: non-Blackberry user
My Carrier: none

Re: barcodescanner example

Bluenoser

 

I  uploaded  the app to the phone and found it to work.  Not sure how practical a camera barcode scanner is.  Seeing how RIM is in the enterprise space it would be nice to have a see a phone that could take a real bar code scanner as an attachment.

 

What do you say RIM ?

Developer
Posts: 412
Registered: ‎04-04-2012
My Device: BlackBerry Z30/Z10/Z10LE/Q10/PlayBook

Re: barcodescanner example

Yes. I got the barcodereader example to work, but the barcodescanner does not.

Regular Contributor
Posts: 94
Registered: ‎12-02-2011
My Device: non-Blackberry user
My Carrier: none

Re: barcodescanner example

sorry did not know there was a difference where did you get the scanner app from ?
Developer
Posts: 412
Registered: ‎04-04-2012
My Device: BlackBerry Z30/Z10/Z10LE/Q10/PlayBook

Re: barcodescanner example

Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: barcodescanner example

This appears to be because I forgot to include the translations/ directory when I added to project to GitHub. We should have it fixed shortly.

 

The BarcodeScanner sample shows you how to use the built in ZXing library to make the decoder yourself, and how to handle the preview frames coming from the camera. This would be useful if you wanted to, for example, scan inverted barcodes. It also shows you how to set up a custom component, and an invocation target.

 

If you just want to scan supported baracodes, the barcodereader sample is the way to go. Just tell it to scan the formats you want.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker