简体   繁体   中英

sending data to javascript from android (droid/native) in phonegap

i am a new to phone-gap. i simply wants to send some data say a string "hello", to JavaScript and show it there. and after showing the string, JavaScript should return a string say "hello again" to android, and android will Toast that from here.

i searched a lot of threads here in 'stackoverflow', but not able to find the answer.

以我的理解,您需要实现一个自定义插件来与android代码进行交互以执行您想要的操作,请参阅http://docs.phonegap.com/en/edge/guide_platforms_android_plugin.md.html#Android%20Plugins

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM