How to create PhoneGap plugin out of an android application

前端 未结 1 1440
盖世英雄少女心
盖世英雄少女心 2021-01-29 12:58

I am basically using this https://github.com/googlesamples/android-vision with a few changes and it works perfectly on my android device. Anyway, I would like to use it inside P

相关标签:
1条回答
  • 2021-01-29 13:34

    Of course it depends of your dev skills but I created myself my first plugin two months ago without being a Phonegap/Cordova expert, I'm a Java developer since 15 years but the most important thing is your motivation.

    You first have to develop your basic Cordova app: https://cordova.apache.org/docs/en/latest/guide/cli/index.html

    Then your ressource to create a plugin will be here: https://cordova.apache.org/docs/en/latest/guide/hybrid/plugins/index.html

    You will have to create one or few Java files as an adapter between your web app and your Jar code.

    I found that the documentation was not enough for my case but I googled and used some dev blog articles and found some StackOverflow questions to help me.

    Good luck!

    0 讨论(0)
提交回复
热议问题