开发者

Running JavaScript methods from Java in Android

开发者 https://www.devze.com 2023-02-08 09:37 出处:网络
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

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

精彩评论

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