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

Web and WebWorks Development

Reply
Regular Contributor
tububerry
Posts: 51
Registered: ‎05-25-2012
My Device: Bold 9930
Regular Contributor
tububerry
Posts: 51
Registered: ‎05-25-2012
My Device: Bold 9930

Re: Use Barcode reader With WebWorks

I am not sure.

Zxing APIs are used  in webworks barcode reader which issupported in 6.0 & above.

Contributor
mmzepedab
Posts: 22
Registered: ‎09-01-2010
My Device: Blackberry 8900

Re: Use Barcode reader With WebWorks

I'm did't manage to install the extension I followed the instructions on the git, but theres one item where it says 

 

Copy the downloaded Smartphone\Barcode\src\blackberry directory to your new ext\webworks.media.barcode\blackberrydirectory

 

I downloaded the zip from the git but there's not such folder. 

 

Can you give me a hand?

Regular Contributor
tububerry
Posts: 51
Registered: ‎05-25-2012
My Device: Bold 9930

Re: Use Barcode reader With WebWorks

That really very bad. 

The documentation is really  VERY VERY BAD.

 

here are the steps:

 

 

->download the barcode folder in a temp folder.

->goto C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\ext  ----------> your SDK folder

->create directory structure  C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\ext\webworks.media.barcode\webworks\media

->copy your barode folder here. 

-> whole path will look like  C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\ext\webworks.media.barcode\webworks\media\barcode

-> this is where your .java files will be.

 

 

 

Should i write javascripts myself or they are available to use with index.html

 

i dunno what to do next.

I need help

 

 

Contributor
mmzepedab
Posts: 22
Registered: ‎09-01-2010
My Device: Blackberry 8900

Re: Use Barcode reader With WebWorks

Yes really really, bad documentation on this API.

 

Did anyone else managed to make it work?

 

 

Regular Contributor
tububerry
Posts: 51
Registered: ‎05-25-2012
My Device: Bold 9930

Re: Use Barcode reader With WebWorks

Did you manage to get the barcode app working? 

i compiled it with some effort. 

when i click on scan button nothing happens.... wassup at ur code?

 

Contributor
mmzepedab
Posts: 22
Registered: ‎09-01-2010
My Device: Blackberry 8900

Re: Use Barcode reader With WebWorks

I coudn't even compile it, because of the error I mentioned above.

 

I'll give a try to what you posted before.

 

I´m developing on Mac I'll try to make my folder structure as yours in it, did you follow the code on the example that says doScan() and did you add the feature id on your config.xml?

 

 

Regular Contributor
tububerry
Posts: 51
Registered: ‎05-25-2012
My Device: Bold 9930

Re: Use Barcode reader With WebWorks

i initially forgot to add it so it threw an error saying 

Javascript error: RerefernceError: Can't find variable: webworks

 

Then i added the feature tag. now it is not throwing any compiler error. but it is not running too.

Contributor
mmzepedab
Posts: 22
Registered: ‎09-01-2010
My Device: Blackberry 8900

Re: Use Barcode reader With WebWorks

What do you mean with is not running?, the app won't open or just nothing happens when you call de doScan() method?
Regular Contributor
tububerry
Posts: 51
Registered: ‎05-25-2012
My Device: Bold 9930

Re: Use Barcode reader With WebWorks

i meant, nothing happens when i click on 'Scan Code' button.

wheni ran the application for the first time, it asked for securtiy access for camera. i allowed access for it.

I am looking at Web Inspector now. this tool is new to me.