title: how to integrate barcode scanner in phonegap in android platform?
body: <p>I want to integrate a "<em>barcodescanner</em>"-feature into my PhoneGap Application, but facing problem while running my app "<code>class not found or applicationcontent is missing in applicationstatus.</code></p>
  
  <p>Here is my <code>index.html</code> file</p>
  
  <p></p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
  
          &lt;meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *"&gt;
          &lt;meta name="format-detection" content="telephone=no"&gt;
          &lt;meta name="msapplication-tap-highlight" content="no"&gt;
          &lt;meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"&gt;
  
           &lt;script type="text/javascript" src="cordova.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/index.js"&gt;&lt;/script&gt;
          &lt;title&gt;Hello World&lt;/title&gt;
          &lt;script type="text/javascript"&gt;
           document.addEventListener("deviceready",onDeviceReady,false);
  
           function onDeviceReady(){
  
           }
            cordova.plugins.barcodeScanner.scan(
        function (result) {
        alert("hello");
            alert("We got a barcode\n" +
                  "Result: " + result.text + "\n" +
                  "Format: " + result.format + "\n" +
                  "Cancelled: " + result.cancelled);
        }, 
        function (error) {
            alert("Scanning failed: " + error);
        }
     );
            cordova.plugins.barcodeScanner.encode(cordova.plugins.barcodeScanner.Encode.TEXT_TYPE, "http://www.nytimes.com", function(success) {
              alert("encode success: " + success);
            }, function(fail) {
              alert("encoding failed: " + fail);
            }
          );
  
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
      &lt;button id="btn" onclick="scan()"&gt;scan&lt;/button&gt;
       &lt;button id="btn1" onclick="encode()"&gt;edit text&lt;/button&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Thank you</p>