wildabeast / BarcodeScanner

Official repository now at [phonegap/phonegap-plugin-barcodescanner](http://github.com/phonegap/phonegap-plugin-barcodescanner).
967 stars 740 forks source link

How to using plugin with android phonegap ? #236

Open KIRAN-H opened 9 years ago

KIRAN-H commented 9 years ago

I've install cordova by cordova create myApp cd example cordova platform add android

and get the plugin by cordova plugin add https://github.com/wildabeast/BarcodeScanner.git After that I've build the project cordova build android

and import to eclipse, here this my index.html code how can I using the plugin ?

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta name="format-detection" content="telephone=no" />
        <meta name="msapplication-tap-highlight" content="no" />
        <!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
        <link rel="stylesheet" type="text/css" href="css/index.css" />
        <title>Hello World</title>
    </head>
    <body>
        <div class="app">
            <h1>Apache Cordova</h1>
            <div id="deviceready" class="blink">
                <p class="event listening">Connecting to Device</p>
                <p class="event received">Device is Ready</p>
            </div>
        </div>
        <script type="text/javascript" src="cordova.js"></script>
        <script type="text/javascript" src="js/index.js"></script>
    </body>
</html>`

and here this my file of directory project http://i.stack.imgur.com/lBvJE.jpg

Please help step by step, I'm newbie. Thank a lot.
epsa-dev commented 9 years ago

Try https://github.com/manateeworks/phonegap-mwbarcodescanner