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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Contributor
rnbd12
Posts: 14
Registered: ‎07-31-2012
My Carrier: Tigo
Accepted Solution

QR Scanner

Hi, I want to know if there is any way to add a QR Scanner to my Blackberry Application, not to download a qr scanner from the market, just download the source code to add a QR Scanner.

 

Thanks

Please use plain text.
Developer
Developer
LBP
Posts: 602
Registered: ‎04-29-2011
My Carrier: none

Re: QR Scanner


rnbd12 wrote:

Hi, I want to know if there is any way to add a QR Scanner to my Blackberry Application, not to download a qr scanner from the market, just download the source code to add a QR Scanner.

 

Thanks


Hi. Do not know which device and BB OS version your post is for, but you could have a closer look to the WebWorks Community APIs. There you can find the extensions neccessary to access BarCode functionality for 1D + 2D Codes: https://github.com/blackberry/WebWorks-Community-APIs


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Please use plain text.
Trusted Contributor
NitishSubudhi
Posts: 166
Registered: ‎12-09-2011

Re: QR Scanner

Hi LBP,

in the given link there is option for BarCode but not for QR Code.
Can you Please tell me that Barcode Scanner will work for QR code or Not!!!! 

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Please use plain text.
Developer
Developer
LBP
Posts: 602
Registered: ‎04-29-2011
My Carrier: none

Re: QR Scanner

Hi.

 

Depends on the device/OS. I think the QR code reader source code is directly in there. Have a closer look into the files for SmartPhone and PlayBook there is 2D code format reader functionality in there, so I asume it should also be possible to use the Community API samples for QR code as well, isn't it. Give it a try :smileywink:


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Please use plain text.
Trusted Contributor
NitishSubudhi
Posts: 166
Registered: ‎12-09-2011

Re: QR Scanner

Hi LBP,
Thanks for your valuable reply, but the above link is for Barcode and I am not able to use this code for Scanning QR Code.
Please Help me for the solution. 

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Please use plain text.
Developer
Developer
LBP
Posts: 602
Registered: ‎04-29-2011
My Carrier: none

Re: QR Scanner

You need to have a closer look at the source code, the samples implement 1D- and also 2D-codes and QR-code is a subset of 2D-code. Have a closer look at line 103 and following for PlayBook and line 81 and following for SmartPhone, I think all the code is already in there.


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Please use plain text.
Trusted Contributor
NitishSubudhi
Posts: 166
Registered: ‎12-09-2011

Re: QR Scanner

Hi LBP,

I am recently working on Implementation of QR Code scanner.
I hope this code is useful to me. 

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Please use plain text.
Developer
Developer
LBP
Posts: 602
Registered: ‎04-29-2011
My Carrier: none

Re: QR Scanner

Hi.

 

Let me know about your progress on this. BTW: Are you targetting BB OS for SmartPhones, PB OS or BB10?


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Please use plain text.
Trusted Contributor
NitishSubudhi
Posts: 166
Registered: ‎12-09-2011

Re: QR Scanner

Hi LBP,
I will surely post if I will complete this task.
I am targeting BB OS for Smartphone BB10. 

Thanks & Regards,
Nitish Subudhi

Feel Free To Press The Like Button On The Right Side To Thank The User That Helped You.
Please Mark Posts As Solved If You Found a Solution.
Please use plain text.
New Contributor
andyevans587
Posts: 5
Registered: ‎05-23-2012
My Carrier: HTC

Re: QR Scanner

Here is the C# source code of encoding QR Code:

List<SRegion> areas = new List<SRegion>();
SRegion area = new SRegion(0, 0, 200, 300);
areas.Add(area);
		
string[] barcodes = BarcodeScanner.ScanRegions("qr code image.gif", BarcodeType.qr code, areas); more source please refer to encode barcode in using C# source code.
Please use plain text.