android - How to scan barcode and QR Code using one Scanner - android

I need the scanner that scans the bar code as well as QR code.For this i saw one App in the Play Store is QR Barcode Scanner.But i don't how to integrate this to android application.
I want the best scanner either it is free or paid and that is easily integrate to android application.Please give me your valuable suggestions
thanks

I would recommend to use zxing (http://code.google.com/p/zxing/). It provides a number of way to integrate bar code/QR code scanning.
Personally I like the method using intent. It is very easy and robust soultion. You can read more from here.

Related

Reading QR Code natively from camera on Android device

Can I make my phone camera natively read QR code and take necessary action without opening the specific application to read it? I don't want to open the application to read these QR codes.
I am developing an android application which requires the following functionality. Please let me know how I can do it.
Thanks,
This is the open source project to build QRCode reader with android camera
https://github.com/zxing/zxing
What about native Mobile Vision API? And here's a tut for barcodes by Google.
Spinning on #Sid's answer, the Mobile Vision API is my preferred way to go. It contain Google's own barcode detector classes and I use it in production apps with great result.
If you like a simpler interface that just opens the camera and returns the QR-code (or barcode) upon detection, this tutorial will probably be most useful. It contains all the stipped down classes you need as well.

Working with 2 apps android

I'm working with android and I have a question. How I can do if I am doing an app that need another app. For example one of my option needs an app that reads code QR (2D) how can I work with both?
Thanks
You should be integrating via intent. See here for details how: https://code.google.com/p/zxing/wiki/ScanningViaIntent.
By doing it this way you eliminate the need to try to copy the barcode scanner app into your own which I think you'll find to be somewhat difficult(Not to mention you won't be tasked with trying to maintain a project that is not yours as new verions of the OS are released). You'll also be saving your users the space of another copy of the barcode scanner application.
Integrating via intent is the way that the authors of barcode scanner intended for you to use it along with your own application.

How to display Barcode Scanner in android

Hi guys iam developing an Android application which needs a Barcode Scanner to be launch when i click on a button .I have seen so many apps in the internet like Zxing.But i have seen that we need to install the project in our device and call an intent from our app to launch it.Here i dont want to use the installed app in my own app.Is it possible to develop a Bar Code Scanner through code so that it doesnt depends on the installed applications in the device.And at the same time i need to capture the Barcode and display in a Textview.Any suggestions is highly appreciated.
You could just use the source code from the ZXing app instead of making your own scanner. Their source code is included on their downloads page at http://code.google.com/p/zxing/. It would definitely be more work than just relying on an intent to their application, but a lot less work than making a barcode scanner from scratch.

QR Reader in android

I want to integrate QR Reader in my android app without integrating third party tool and also need auto scan feature .I reviewed few tutorials using zxing libraries but scanning is not done in them.It generally captures image to sdcard and then access it and which doesnt give result every time....
Please help experts .
If you want to Integrate QR reader which is not a third party tool, then i suggest download the Zxing code which is an open source.
Call the activity which initiates the scan, from your app activity.
Regarding saving to the sd card, Zxing doesn't do that, it analyzes the image in focus and tried to find the match until the activity is cancelled or a match is found.
Have a look at ZXing QR reader app before you can integrate it in yours.
I have integrated the ZXing QR reader successfully and it works without a problem. Requires some effort though. Good luck.
Take a look at the Zxing Barcode Scanner app, which does QR Code decoding with auto scanning.
I'm sure of it, because i used it last week :)
BarcodeScanner.apk
Greetings Ralf
Integrate ZXing's Barcode Scanner app with your app without having to install the app separately.
Step-By-Step Guide
A great alternative is Google's barcode scanner available in the Google Play services through the namespace com.google.android.gms.vision.barcode. It's fast and robust (it does all the parsing locally) and it's all made with just a few classes, giving you full control of the source code. And of course it supports all the standard barcode formats.
A good place to get started is Android QR Code Reader Made Easy. This will get you up and running in no time and you can easily build further upon the code provided or equally easily implement it in your existing project!
Give it a try, I bet you'll love it!

Is there a way to create a scannable barcode that links to your app on marketplace?

I am trying to find a way that allows you to scan one of those online barcodes and have it link up to my droid app - anyone have any idea how to get one?
Yes you can simply use any kind of QR code generator to generate a link to your applications market presence.
The QR Code below was created using ZXing's Online QR Code Generator
This QR Code links to a pseudo app with following link.
market://details?id=com.example.my.cool.app
Scanning this code using a QR Code scanner app will open the market on your device linking you to your application.
Use one of the uncountable meta market site like http://www.androidpit.com/
Search for your application there and you will find a QR code for the market link there, too.
[edit] Afaik the update of the page is at least once a day, so you should see your new app soon there. As your link doesn't change on update you don't need to change the QR code [/edit]

Categories

Resources