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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -