How to connect html to native using phonegap in android

后端 未结 1 764
一个人的身影
一个人的身影 2021-01-17 04:59

i started working on android using phonegap. In iphone we use phoneGap.exec(classname.methodname, arguments) to connect to the na

相关标签:
1条回答
  • 2021-01-17 05:42

    Sounds like you're trying to connect to a native plugin. The technique is generally the same on Android, include the native code and then call out using the Phonegap.Exec() wrapper. If you're looking for a sample to start from try out the BarcodeScanner plugin, which includes native code and the JS wrapper to call out to it:

    https://github.com/purplecabbage/phonegap-plugins/tree/master/Android/BarcodeScanner

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