javascript - How to create PhoneGap plugin out of an android application -


i using https://github.com/googlesamples/android-vision few changes , works on android device. anyway, use inside phonegap. idea build rest of application in javascript/html/css , when pressed specific button, start android app.

can done has never created plugin before?

i grateful hint or tutorial on how it.

of course depends of dev skills created myself first plugin 2 months ago without being phonegap/cordova expert, i'm java developer since 15 years important thing motivation.

you first have develop basic cordova app: https://cordova.apache.org/docs/en/latest/guide/cli/index.html

then ressource create plugin here: https://cordova.apache.org/docs/en/latest/guide/hybrid/plugins/index.html

you have create 1 or few java files adapter between web app , jar code.

i found documentation not enough case googled , used dev blog articles , found stackoverflow questions me.

good luck!


Comments