如何使用Android原生code在PhoneGap的? [英] How to use android native code in phonegap?
问题描述
我使用的PhoneGap开发Android应用程序,我碰到一些事情是很容易在比较中的PhoneGap Android原生code来实现。所以我想知道有没有什么办法中,我可以通过不改变我的PhoneGap的跨平台使用的Android code的?
I am developing an android application using phonegap and i came across some things which are quite easy to implement in android native code when compare to phonegap. So i want to know is there any way in which i can make use of android code by not changing my phonegap cross platform?
推荐答案
类似的问题:<一href=\"http://stackoverflow.com/questions/11609326/how-can-i-call-native-functions-in-phonegap-through-javascript/11610435#11610435\">How我可以通过JavaScript调用PhoneGap的本机函数?
您可以编写PhoneGap的插件
You can write phonegap plugin
<一个href=\"http://docs.phonegap.com/en/2.0.0/guide_plugin-development_index.md.html\">http://docs.phonegap.com/en/2.0.0/guide_plugin-development_index.md.html
这篇关于如何使用Android原生code在PhoneGap的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!