How to display Barcode Scanner in android - 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.

Related

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.

Integrating built in barcode scanner with android app phonegap

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.

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.

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