cordova - How to use external jar in phonegap application? -
i created jar file consist of java code. want use jar phonegap application. added jar libs folder of working copy.
you have create plugin that.
you'll need class extends cordovaplugin class. in class add code call code jar in execute method.
and you'll have create javascript file able call java code javascript.
you can follow following guides or have @ code of phonegap api plugins. http://docs.phonegap.com/en/3.3.0/guide_hybrid_plugins_index.md.html#plugin%20development%20guide
http://docs.phonegap.com/en/3.3.0/guide_platforms_android_plugin.md.html#android%20plugins
Comments
Post a Comment