Note that there are some explanatory texts on larger screens.

plurals
  1. POPhonegap BarcodeScanner plugin could work in Android project
    text
    copied!<p>I have tried to integrate the BarcodeScanner plugin to one of my Phonegap project of Android. I have even done all the thing step by step as <a href="https://github.com/phonegap-build/BarcodeScanner/tree/9270025f71891b2f46a38b7bc3d1223b4955dce2" rel="nofollow noreferrer">the tutorial</a> provided by github.</p> <p>The library has been imported,BarcodeScanner.java file has been imported, <img src="https://i.stack.imgur.com/ItUgg.png" alt="enter image description here"></p> <p>barcode.js has been imported, <img src="https://i.stack.imgur.com/fQ9Hn.png" alt="enter image description here"></p> <p>activity has been added to AndroidManifest.xml</p> <p>the config.xml in res path has been also modified. <img src="https://i.stack.imgur.com/dSIX0.png" alt="enter image description here"></p> <p>When I test my app with eclipse, I have gotten the error below. <img src="https://i.stack.imgur.com/I8HJE.png" alt="enter image description here"></p> <p>By the way, I have used phonegap 2.9 and my code for using the plugin is as below.</p> <pre><code>document.addEventListener("deviceready", deviceReady, true); function deviceReady() { var scanner = window.plugins.barcodeScanner;//note that cordova.plugins.barcodeScanner has also been tried. Same error. scanner.scan( function(result) { alert("We got a barcode\n" + "Result: " + result.text + "\n" + "Format: " + result.format + "\n" + "Cancelled: " + result.cancelled); }, function(error) { alert("Scanning failed: " + error); }); } </code></pre> <p>Really do not know what to do. Could you please give me any suggestion?</p> <p>Thanks in advance.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload