Added barcodescanner.js to /www/js. Manually changed index.html to include this js file. *All of this gets copied to the platform specific dir during build, so you can't do that in the generated platform-specific folder.
Added Activity in AndroidManifest.xml, as per instructions.
Added /platforms/res/xml and created plugins.xml file. This seems dodgy...
Compiled the BarcodeScanner.java file in Eclipse (according to instructions, sort off), throw the result in /platform/android/gen. Super dodgy.
Result? windows.plugins.barcodeScanner doesn't seem to resolve at all in the application. (I screwed with the JS to force it to try and load, resulting in a null.)
Possible approaches?
Figure out if and how plugins are loaded in cordova apps.
Perhaps use the mysterious (empty) /plugins folder? We could look at other Cordova plugins to see how they are defined perhaps?