I'm going to develop mobile app that using QR Code to make easy for the user to view the information detail of the item. Anyone have reference to help me to create QR Code?
Just use the Zxing library, it is an open-source, multi-format 1D/2D barcode image processing library implemented in Java and it supports QR Code.
There are very good tutorials explaining how to create apps to read QR codes from scratch using Zxing library.
You can use Zbar or ZXing. For ZXing tutorial is Here
Related
In my android application I need the QR code reader, so after lots of search, I ended up with the point that there is no need to implement QR code encode/decoder from scratch and that I can use ZXing library to do the task. but now im stuck with HOW to integrate ZXing library in my code, and then how to retrieve the scanned data into a string to my project? I know, this question might be a stupid one but Im newly introduced to such a topic.
Thanks alot.
By far the simplest, if you aren't in a position to write a full scanning app, is not to write a full scanning app. Integrate with an existing one by Intent in 10 minutes: https://code.google.com/p/zxing/wiki/ScanningViaIntent
The ZXing wiki has instructions on how to do this easily.
Basically you include some simple code that starts the ZXing Android app and then retreive the result in onActivityResult().
I am unable to scan a QR Code having dark background(dark pink) with lighter QRcode(light pink) on it. I have integrated the zxing barcode scanner in my application to scan codes.. It works perfect for lighter background and dark QRcodes.
I tried this using the default zxing barcode scanner application. But it could not scan such kind of codes.
Following is the QRCode I am trying to scan,
Please suggest some solution.
Thankyou.
Contrast of QR Code you included should be enough for most cameras. Problem here is that the ZXing library does not support inverted QR Codes. It only supports dark codes on light background.
To add this support, you need to invert the image yourself. You can use some code similar to this one:
http://www.androidsnippets.com/how-to-invert-bitmap-color
Of course, you will need to integrate the ZXing by including the library to accomplish this, not just by Intent (I don't know how you're doing it now) so you can modify some code.
You can add the code to invert the bitmap in the method decode(byte[], int, int) of class DecodeHandler.
Hi i am a student doing an academy project based on android.my project mainly has to perform a book search from 3 webites like amazon,flipkart,rediff etc using a barcode scaner to scan the barcode and fetch the data of the book from the 3 sites.
i used the zxing library to develop a barcode similar to the existing barcode scanner and ran it on the android emulator and on phone and its working
nw i wana include this barcode scanner inside my bookcomparison app but i dont wana call the app via an intent but i wana have an inbuilt barcode scanner inside my app.
pls help me and thanks in advance
See this post:
http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/
Sean Owen, one of the developers for ZXing, has also mentioned this on this blog. Do take a look at his comments.
I need to write an android aplication to create/generate a barcode using a string with the value to show.
The android app had to show a pic with the barcode to be scaned with other phone.
I read a lot from internet and everybody recomend to use Zxing for that, but i can't find some tutorial about how to use Zxing to create barcodes on android.
I have experince using Zxing with Android-Integration to read QR Code.
I have to use the same to create barcode?
Can i use Android-Integration?
Thank you very much
Sorry for my poor english
Scanning via Intent should be all you need: https://github.com/zxing/zxing/wiki/Scanning-Via-Intent
I need to create an android application which pretty much works like a qr code decoder.
I want to use the android phone camera and read only the qr code from the camera preview, and send it to a decoder library probably zxing which gives me the result. I don't want to use the zxing intent which uses another application barcode scanner.
I am able to take a picture using phone camera, but I don't know how to read only the qr code part from the preview. I need help in this regard and also how to send the data to decoding library.
That's a pretty tall order to ask for here on SO. My advice would be to study the xzing source at http://code.google.com/p/zxing/ and/or see if you can legitimately incorporate it via the Apache 2.0 license into your project.
ok, this turns to be pretty much simple and requires some effort too.
Download the ZXing source code.
There is a CaputureActivity class , which basically initiates the scan and also displays the result.
You have to work on this class to integrate ZXing scanner in to your application, which pretty much looks like it is part of your app.
There is lot more support in the ZXing reader than just scanning QR-codes and more features, which you might want to eliminate , if you would like to have only QR-code scanner.
HTH.