开发者

Running JavaScript methods from Java in Android

I am writing application using PhoneGap on Android. I 开发者_如何学Goneed to call some PhoneGap methods from native Java code. Anyone knows how to do that??


If you write your native code as an Android plugin (see an example here: https://github.com/phonegap/phonegap-plugins/tree/master/Android/BarcodeScanner) then you have access to all of the PhoneGap Java classes and can call them as you like.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜