I want to make an Android app that uses the camera to take a photo of a barcode for a product to get the number of barcode, but I have some problem to make the implementation.
The main question is how can I use the camera to take a picture to recognize the id of this barcode without using any external application.
Thanks for your help!
You should try Zxing library, the library contains Barcode Scanning feature.
here : http://code.google.com/p/zxing/downloads/list
Why won't you use the external application? This is the power of Android apps - they can use each other functionality, which is implemented perfectly in their app.
yes yu should use the zxing tool this is an open source you can use in your code too, here : http://code.google.com/p/zxing/
downloads/list. download the source code from main site and see manual it will give you the instruction too
Related
I have been trying to build an Android application in which i need to include a qr scanning feature. And After scanning that qr code it should provide an drop down menu to choose categories to proceed with. How can i achieve this? I'll be using java to build that application. Please consider helping this.
Use this library for QR scanning
https://github.com/journeyapps/zxing-android-embedded
It will solve your problem
Firebase now has a Barcode Scanner feature, including QR Code, it's free and run 100% on device.
I am looking at making use of QR codes in an application of mine.
I did some research / Googling and I found that this library is apparently a good option to use:
http://sourceforge.net/p/zbar/news/
But I read there it says that is still needs an application that can read qr codes for it to work?
Is there not a library that just makes use of the camera and then decodes the qr code in the application that is using the library?
If you need to scan QR codes in your application, this is the way to go :https://code.google.com/p/zxing/
You can also integrate the necessary libraries in your project in order to avoid to launch a scan using the Intent way (so a third-party app installed on your device would be necessary).
If you Google it, you'll find a lot of guides to do that: the first I got is http://www.androidaz.com/development/zxing-qr-reader-direct-integration but there's a plenty of tutorials out there.
ZBar can be installed as a library in the project, and used as any other activity.
You can Check:
https://github.com/DushyanthMaguluru/ZBarScanner/blob/master/examples/ZBarScannerDemo/src/com/dm/zbar/android/examples/MainActivity.java
That's the example of how to use ZBAR to read a QR, in the onActivityResult you can handle the results (in this case the example makes a toast).
You can follow the installation explanation here:
https://github.com/ZBar/ZBar/tree/master/android
I'm beginner in android and I need to create own QR code scanner app.
After searching for some library, of course I found zxing library (http://code.google.com/p/zxing/), but if I understand right, there must be installed BarcodeScanner application to use it and this library call this app. This variant is bad for me, because I need only my own app.
But if I'm not right, how to use this library without installing BarcodeScanner?
Also I found this: http://www.blackdogfoundry.com/blog/zbar-bar-code-qr-code-reader-android/, and I'm not sure that it will work fine with all devices.
Did anyone do some qr readers, what did you use? Do you know some other good libraries for this, except of zxing?
ZXing is good and useful library. I think you are mixing up library itself and application
which is also produced by the project
I wouldnt be so quick to dismiss Barcode Scanner.
I recently used it in an App that needed to read barcodes. It works seamlessly with my App. The only downside is that it needs to be installed by the user, but to be honest weighting that up against the time and money it would take to develop a Barcode reader from scratch, its a no brainer. If the user does not have it installed it will not break your app.
I know this is not the answer you were looking for but just thought I would offer my experience
You may also try to call the BarCode scanner App and obtain the result in the parameter of strings rather than importing the whole zxing library into your project due to substantial cost to code integration into your project . Using intents and overriding the OnActivityResult is already a good solution.
XZing is your answer!
yeah yeah they try to push it to use as an external library, but that relies on the user having it installed.... but it's all open source and you can use it however you prefer.
So download that code, integrate it directly into your app and there you go.
I want implement an activity that when starts, capture the QR code by camera, and than decode it. Can I do this without installing an other app on my tablet?
I seen zxing, but I don't understand how implements it..
Yes, you can. You will have to:
- initialise camera and start preview mode
- wait for preview image and process it
- pass it to zxing library to decode.
Good starting point: zxIng demo applications - sources are available
Use opensource QR code projects and use them for your app. zxing is one
Try using latest zxing liberary.
You can use it by two ways,
Add the zxing library to your workespace and make it as liberay project.
Add all the file of the zxing liberary to your project.
The second option is much easier. You have to make changes in CaptureActivity according to your requirements. Its very easy.
I am working with android API v2.2.
I want in my application i can work with QR reader. means in a button click it open the camera and can able to read QR code.
Is it possible generate QR code through application?
How can i work with these? I dont have any idea.
Plz tell me what should used for this(is there any lib or api available for this) If yes then what should be the process.
Give me a sample example.
Thank you
Try the zxing library : http://code.google.com/p/zxing/
you can use either
zxing library : http://code.google.com/p/zxing/
or
ZBar bar code reader here http://sourceforge.net/projects/zbar/?source=dlp