I don’t know why it’s not working, but when I try to add a plugin for phonegap in android the emulator says process unexpectedly exited. These are the steps I followed:
- Create a java class for examply MyPlugin that extends Plugin class
- Create a javascript file that creates a variable which has some function property that calls PhoneGap.exec with appropriate parameter
- Add
<plugin>tag with appropriate name and value - Run project
the javascript code was undefined because I wasn’t adding the plugin correctly. Had to instantiate the plugin class.