2

I am making a augmented reality / voice recognition app using Phonegap, wikitude and voicerecognizer (phonegap plugin). Almost everything works: The app launches the native speech api, saves the result in an input field, and then starts de wikitude ARchitect view. I have to put the value from the input field trough to the ARchitect view (this had to infect the models that show).

The Problem is: I've no idea how to do this.

I tried a lot of things but nothing worked. I was realy close to the solution trough a cookie, but when I tried to open the cookie in the ARchitect view it gave a security error.

The question in short: How to pass data/variable between the Phonegap view and the Wikitude ARchitect view?

4

1 回答 1

1

Wikiitude SDK for android 有以下方法:

void callJavascript(String javaScriptCommand) 在当前加载的 ARchitect World 的上下文中执行传递的 JavaScript 字符串。这可用于将数据传递给 ARchitect World 或将外部事件通知它。

phonegap 插件可能有类似的东西。

于 2013-04-24T19:10:38.460 回答