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.
精彩评论