Chris Erickson is right, the Zxing and Phonegap projects have already taken care of the hard climb for you. (My current SO reputation forbids me to comment, but I would.)
I just made a Phonegap / Android application that scans a QR barcode using a plugin here . Follow the instructions and you must be successful. It is possible that the plugin was written from the moment Chris answered.
Javascript is simple, taken straight from https://github.com/phonegap/phonegap-plugins/
var scanBarcode = function() { window.plugins.barcodeScanner.scan( BarcodeScanner.Type.QR_CODE,function(result) { alert("We got a barcode: " + result); }, function(error) { alert("Scanning failed: " + error); }, {yesString: "Install"} ); }
RobLabs Dec 01 '10 at 1:20 2010-12-01 01:20
source share