How to implement Barcode Scanner inTitanium step by step method using zxing or any library? - titanium

I have to implement a barcode scanner in both android and ios where I need to scan the barcode and retrieve data and bind it in the text field.

There is one official barcode module you can look into that is fully open source. This means you can use it directly in your app on both platforms, AND you can check the source code to see how it is build, and if needed hook into that logic, expand it with your own functionality or add support for barcode types etc.
It is called ti.barcode and can be found on GitHub. It uses zxing under the hood as well.

You can use below hyperloop project as well which uses zxing lib directly
https://github.com/m1ga/hyperloop.barcode

Related

Creating reusable child views in Titanium Alloy (A

I'm new to Appcelerator Titanium, so one of the considerations that popped into my mind was this: how do I create reusable custom controls for use in Alloy? Take for example in Android:
The ColorPicker is a 3rd-party library that allows me to add it as a control to the .xml file so long as I reference the library. I would also be able to create my own controls and either reuse them locally or distribute them as an external library. Is there a similar concept for Titanium, more specifically for Alloy (i.e. the xml and all)?
Yes there is the concept of creating widgets and which can be reused locally in the projects. There are alot of widgets already available.
One of the important widgets for creation of the application Font Awsome Widget.
You can see the source code as well and check its implementation.

Is there any module to generate barcode from number in Titanium Appcelerator?

For barcode scanning there are modules available like Redlaser,Scandit..etc.
Is there any module to generate barcode from number(reverse procedure)?
Thanks.
A nice trick to avoid the main of modules, you can simply download a Barcode font, embed it in your app, and simply show a label with the text and the barcode font.
Be sure to check if the font is real, some are just artists conceptions and do not generate actual barcodes. Just make a few tests with a scanner app before you launch!
M_
There is Scandit api's available for this implementation Here is the working example link,
Here is instructions how to use it.
Hope this may help some one else also.
Thanks.

QR Code in Windows Store App

I need to program a QR code reader in my Windows RT app, so I can get the ID of the specific item I am scanning.
I have found the source to a free QR code generator, but I cannot find the code to read the ID from the QR Code, so can anybody in here tell me, where I can find the source to a QR Reader or any other ways to read the QR Code e.g. Install a third-party program, which only reads the QR Code and sends the result back to my program
I would recommend taking a look at ZXing.NET. It's an Open Source barcode scanner library, which includes support for QR codes. There is a WinRT port available on CodePlex. You will simply need to pass an image into the library to read the contents.
I faced the same problem, I had to manually write camera capture capability and then pass it on to ZXing. Check it out here - http://quirkd.wordpress.com/2015/02/18/reading-qr-codes-in-winrt-tricky/

How to scan images using camera in Black berry?

I have started one project in which I want to implement QR code scanning functionality. Say for example: ZXing in android. I want to implement for blackberry OS 6 and above. I want to scan live images using camera. Is it possible? If yes, then how it possible?
You have to use the Barcode API. It was released for OS 6.0. Before that, there was ZXing (added in 5.0) but no livescan functionality.
Here you are the how-to:
http://supportforums.blackberry.com/t5/Java-Development/How-to-use-the-Barcode-API/ta-p/574569
Please check this in your eclips folder
path is
Eclipse\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.29\components\samples\com\rim\samples\device\barcodescandemo
barcodescandemo demo is QRcode reader
please check it you can find all things

Regenerate QR code in objective c

I am develping an app in iphone which reads barcode using ZBar framework. Is there any framework or sample code to re - generate the bar code or QR code?
Sure, ZXing has QR code generating code. It's in Java though, but you could port it -- actually I forget whether it's already been ported within the project.
But, even easier, just call to the Google Chart Server. It has the same encoder inside it. No coding needed to get an image for given contents.