【发布时间】:2011-02-03 07:17:01
【问题描述】:
我开始使用phonegap 在 Android 上工作。在 iphone 中,我们使用phoneGap.exec(classname.methodname, arguments) 从 html 连接到本机应用程序。但是你怎么能在Android中做到这一点?有人可以帮我吗?
提前致谢,
Bharath gangupalli
【问题讨论】:
我开始使用phonegap 在 Android 上工作。在 iphone 中,我们使用phoneGap.exec(classname.methodname, arguments) 从 html 连接到本机应用程序。但是你怎么能在Android中做到这一点?有人可以帮我吗?
提前致谢,
Bharath gangupalli
【问题讨论】:
听起来您正在尝试连接到本机插件。该技术在 Android 上通常是相同的,包括本机代码,然后使用 Phonegap.Exec() 包装器调用。如果您正在寻找一个示例开始尝试 BarcodeScanner 插件,其中包括本机代码和调用它的 JS 包装器:
https://github.com/purplecabbage/phonegap-plugins/tree/master/Android/BarcodeScanner
【讨论】: