Hi guys,
could you please help me. I'm newbie in phonegap world.
I have an application that using the barcode reader plugin.
It works well until after scanning the code.
After I scan the code there is a message show at the bottom of the screen :
"Found URL"
then it give "Application Error"
"The web page containts an error. (File:///android_asset/www/scanQR/#)"
this is script that I use to call the scan method :
var scanCode = function() {
window.plugins.barcodeScanner.scan(
function(result) {
alert("Scanned Code: " + result.text
+ ". Format: " + result.format
+ ". Cancelled: " + result.cancelled);
}, function(error) {
alert("Scan failed: " + error);
});
}
I call it by :
<a href="#" data-role="button" onclick="scanCode();">Scan Code</a>
and you can see my androidManifest.xml in attachment.
Please help me, I tried several ways before like update *.java and change the screen orientation,
but it doesn't work.
Thank You.