Integrating built in barcode scanner with android app phonegap - android

I want to write an app that uses a device with a built in barcode scanner, such as this device here http://liliputing.com/2012/05/rampage-6-is-a-rugged-waterproof-android-2-3-tablet.html. I am using phonegap to build this app, Is there any way to get the input from a built in scanner like this? I do not know many specifics at the moment because I am in the process of determining whether it is a possibility. Thanks

You might want to use a barcode scanner plugin in your phonegap project. For a tablet with built in barcode scanner, it should have a button which triggers the barcode scanner and return the read result back to your app.

Related

Android Barcode Scanner - Automatically choose scanner

I have integrated ZXING barcode scanner in my app.
How can stop my app for asking different scanner apps(based on zxing)
and automatically choose my app for scanning ?
Use IntentIntegrator, which will automatically choose the official Barcode Scanner app by restricting the packages searched.
http://code.google.com/p/zxing/source/browse/trunk/android-integration/src/com/google/zxing/integration/android/IntentIntegrator.java

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 handle zxing if not installed on Device?

I'm developing an app that has QR code reading ability, i'm using the Zxing library, launching via intent, so the Barcode Scanner is handling the QR reading functionality, my question is, if the user doesnt have the Barcode Scanner App installed on their device, is there a way to bring them to the app store to get the application for their device?
Peter
You should be using the ZXing IntentIntegrator, which will automatically give the user the option to visit the Play Store if the app is not installed on their device.
Here is a sample project using IntentIntegrator, including a JAR edition of that class (in the project's libs/ directory).

Using android Intent in adobe air

it has been a while since I was here.
Currently, I'm trying to develop an application in Adobe AIR that has a 1D bar-code reader using the device camera function. I have tried using ZXing's library and followed http://www.remotesynthesis.com/post.cfm/adding-a-qr-code-reader-in-flex-on-android example. The QR reads fine however, I can't managed to get 1 D bar-code reader to work. Even with MultiFormatReader class.
Nevertheless, I tried ZXing's BarcodeScanner from Android Market and it works just fine on my device. So, I have been thinking of using ZXing's android Intent to handle the reading and pass the result back to my AIR application instead. But, I don't know how to launch android intent from AIR.
Any suggestions are highly appreciated, thank you.
if you are developing Air on Android, you may consider using an extension to do the job for you! checkout http://myappsnippet.com/qr-code-scanner-native-extension-adobe-air this is an AS3 library which uses the Zxing Java library and scans QR codes and returns the result back to your AS3 project.

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.

Categories

Resources