We really need to be able to shoot a picture from the phone camera (in my case, Android HTC Desire) and decode the QRcode picture on it.
Something equivalent to the following JS:
useFlash = off; // disable the camera’s flash light
status = camera.flash(useFlash); // on, off, auto - In this example: off
qr = camera.takePicture().getQRObject(); // Get QRCode object from the image object obtained right now from the camera
camera.flash(status); // put the flash as it was before
If (!qr.isValid) { // Property: QR object contais a valid QR code. Original image was a real QR code decoded ok.
alert(“Can’t detect the QR code. Take another picture closer and try not to shake please. : )”;
}
else {
alert("The QR code contains: "+qr.data.toString()); // Display the data encoded on the QR
}
//=====
Why? Many of us need a way of easy input data to the app like a barcode reader.
QRcodes are printed everywhere.
In Japan you can’t live without them.
On the past we used Windows Mobile with a barcode device attached to a pocket-pc. Today we use the cameras on the devices.
QRCodes are way better than barcodes. We can insert ANY kind of info on them.
Best regards,
Rick.
[import]uid: 6011 topic_id: 839 reply_id: 300839[/import]