cancel
Showing results for 
Search instead for 
Did you mean: 

Reading BARCODE using camera for hybrid

GowthamRaja
Participant
0 Kudos

Hi Experts,

I need to scan the barcode using mobile camera... so i am writting the following code in custom.js as mentioned in the link http://code.google.com/p/jquery-barcodelistener/wiki/setup

but it seems no scanning... will the above jquery files as given in the link have the function to open the camera or we have to write the code below navigator.camera.getpicture......do we need to design a seperate screen to capture the value while scanning the barcode and putting in to it......... Kindly help me how the code works and what can added or how it is to be modified to resolve the problem.....

Thanks ,

Gowtham

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Did you get some sample code working for Android reading Barcodes ?

GowthamRaja
Participant
0 Kudos

ya i am doing as per in the link,

http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt3.

http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt3here the phonegap-plugins for android barcode scanner is mentioned in the link

https://github.com/phonegap/phonegap-plugins/tree/master/Android/BarcodeScanner...... Do you have any idea to be shared on this. guide me pls

GowthamRaja
Participant
0 Kudos

ya i am doing as per in the link,

http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt3.

http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt3here the phonegap-plugins for android barcode scanner is mentioned in the link

https://github.com/phonegap/phonegap-plugins/tree/master/Android/BarcodeScanner...... Do you have any idea to be shared on this. guide me pls

GowthamRaja
Participant
0 Kudos

Hi Leach,

Did you find any working samples for barcode scanning which we have discussed already in this forum. if you have any please share it.

Former Member
0 Kudos

Hi,

have any body done with solution for barcode scanner in HWC, if it is there could you please share the app.

Former Member
0 Kudos

Dear HWC Experts,

I am unable to suceed with camera, barcoding scanner with HWC. I am using SUP 2.2.

I tried various options, but didn't work. I followed the approach as per this blog :http://scn.sap.com/thread/3359393

Do I need to enable phonegap APIs before using them ? The reason that part of code has not been mentioned in the blog attached.

Kindly help us here. We have a demo to the customer and need to show how easy it is to integrate device peripherals using HWC.

- Suraj

Former Member
0 Kudos

You may go to codeproject.com to check whether there is code you required. And here I pasted a link for you,which is on barcode-scanner and camera hope it will offer some insight for you:

http://forums.codeguru.com/showthread.php?526317-Add-Camera-Bar-Code-Reader-Support-to-Android-and-A...

Former Member
0 Kudos

Hi Gowtham,

 

Did you find anything for reading barcode using camera for hybrid

for android device using sybase unwired platform 2.2.

We are facing same issue.

Kindly Help us on the same.

Thanks

Surekha

former_member184221
Contributor
0 Kudos

Try using PhoneGap extensions.

You need to implement phone gap barcodescanner plugin in SUP environment then you can scan the barcodes.     see th

The following link contains a sample scanner  https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/BarcodeScanner

GowthamRaja
Participant
0 Kudos

Hi David,

I am doing for hybrid applications but the link shows only for iphone..... may i get the src code for hybrid application........ Thanks in advance

former_member184221
Contributor
0 Kudos

Normally HTML/JS can't interigate the hardware features of the phone. e.g. The Camera. Thats why you use a Hybrid environment like Sybase SUP HWC (Hybrid Web container) or you use PhoneGap. Now HWC has phonegap calls built into it, so you can hook in your camera using a phonegap call from your HWC.

I gave you the ios code to get you started, what other platforms do you need Camera code for ?

GowthamRaja
Participant
0 Kudos

Thanks for your information David.

I want for android platform since i am going to start with android only...... i am using phonegap plugin 1.4.1 version but

https://github.com/phonegap/phonegap-plugins/tree/master/Android/BarcodeScanner

the following site contains phonegap-plugins 1.8.1 and 2.0.0 only..... i dont know whether barcode scanner for phonegap-plugins 1.4.1 will support or not, as discussed in this link

https://sites.google.com/site/mobiledevelopersolutions/home/start/twominutetutorials/tmt3.......

Please clarify the following questions since its a big confusion to me:

1) Whether the camera will be automatically opened by writing this code or we have to make it enable through navigator.camera.getpicture?

2) When the camera is focusing a barcode the output of the barcode will be shown automatically or we have to design the screen and pass the values in to it to get the output of the barcode?

Kindly help me on this issue to solve it as soon as possible ......... Thanks

Message was edited by: gowtham raja

former_member184221
Contributor
0 Kudos

Have a look at this sample: https://cw.sdn.sap.com/cw/docs/DOC-149428

GowthamRaja
Participant
0 Kudos

Hi David,

I am doing phone gap as suggested by the link

https://sites.google.com/site/mobiledevelopersolutions/home/start/twominutetutorials/tmt0

but here i cant see the jslint4java as said in step.5..... Please help me

former_member184221
Contributor
GowthamRaja
Participant
0 Kudos

Hi David,

I am doing barcode scanning using mobile camera for hybrid application..... For this i have downloades a sample which you have uploaded in the following link

https://cw.sdn.sap.com/cw/docs/DOC-149428 ........

by seeing this sample i have also developed a project for my requirement in the following link

https://cw.sdn.sap.com/cw/docs/DOC-151629   .................

but i am not getting the output.... can you please go through the file and guide what the error is and how to correct it ..... Thanks in advance

Thanks,

Gowtham

GowthamRaja
Participant
0 Kudos

Hi David Clavey,

Can you please guide me how to do the step by step process for my requirement "Barcode scanning through mobile camera for hybrid applications"....... I am strucking a lot to do..... Please send me the document if available........... Thanks in advance Reading BARCODE using camera for hybrid


former_member184221
Contributor
0 Kudos

I would also have a look at this code:

Two minute tutorials 

Implement it using PhoneGap first and then when you have got it working move the code to HWC.

GowthamRaja
Participant
0 Kudos

Hi David,

As mentioned in Two minute tutorials , i got that blue color screen but with popup's which can not be removed. Can you try this and please tell me where i am lagging and what is the problem is

Thanks,

Gowtham

GowthamRaja
Participant
0 Kudos

Hi David,

As you said already, shall we have a look on tomorrow (Tuesday) ?

former_member184221
Contributor
0 Kudos

Initial experiment did not work, will get it working in phonegap first then move to HWC, I will keep you posted ...

GowthamRaja
Participant
0 Kudos

Thanks David