Hello everybody.
I'm developing a Interactive Book for children with Adobe Edge.
I have made each page in diferent projects. To go from one page to another I use the "Open Url" option when you click in some arrows. So the code is:
Symbol.bindElementAction(compId, symbolName, "${_page_right}", "click", function(sym,e){
window.open('oledor02.html', '_self');});
It works perfectly in all the browsers on my Mac but not in a Phonegap for Android Proyect.
When I run the project It works until the version 4.2 of Android, but this code is not working in 4.3 or 4.4
I get the following error:
02-13 16:59:55.905: D/InAppBrowser(2352): target = _self
02-13 16:59:55.905: W/webview_proxy(2352): java.lang.Throwable: Warning: A WebView method was called on thread 'WebViewCoreThread'. All WebView methods must be called on the UI thread. Future versions of WebView may not support use on other threads.
02-13 16:59:55.905: W/webview_proxy(2352): at android.webkit.WebView.checkThread(WebView.java:1918)
02-13 16:59:55.905: W/webview_proxy(2352): at android.webkit.WebView.getUrl(WebView.java:1119)
02-13 16:59:55.905: W/webview_proxy(2352): at org.apache.cordova.InAppBrowser.updateUrl(InAppBrowser.java:278)
02-13 16:59:55.905: W/webview_proxy(2352): at org.apache.cordova.InAppBrowser.execute(InAppBrowser.java:110)
02-13 16:59:55.905: W/webview_proxy(2352): at org.apache.cordova.api.CordovaPlugin.execute(CordovaPlugin.java:66)
02-13 16:59:55.905: W/webview_proxy(2352): at org.apache.cordova.api.PluginManager.exec(PluginManager.java:215)
02-13 16:59:55.905: W/webview_proxy(2352): at org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:51)
02-13 16:59:55.905: W/webview_proxy(2352): at android.webkit.WebViewCore.nativeMouseClick(Native Method)
02-13 16:59:55.905: W/webview_proxy(2352): at android.webkit.WebViewCore.nativeMouseClick(Native Method)
02-13 16:59:55.905: W/webview_proxy(2352): at android.webkit.WebViewCore.access$6800(WebViewCore.java:59)
02-13 16:59:55.905: W/webview_proxy(2352): at android.webkit.WebViewCore$EventHub.dispatchWebKitEvent(WebViewCore.j ava:1793)
02-13 16:59:55.905: W/webview_proxy(2352): at android.webkit.WebViewInputDispatcher.dispatchWebKitEvent(WebViewInpu tDispatcher.java:689)
02-13 16:59:55.905: W/webview_proxy(2352): at android.webkit.WebViewInputDispatcher.dispatchWebKitEvents(WebViewInp utDispatcher.java:639)
02-13 16:59:55.905: W/webview_proxy(2352): at android.webkit.WebViewInputDispatcher.access$800(WebViewInputDispatch er.java:78)
02-13 16:59:55.905: W/webview_proxy(2352): at android.webkit.WebViewInputDispatcher$WebKitHandler.handleMessage(Web ViewInputDispatcher.java:1153)
02-13 16:59:55.905: W/webview_proxy(2352): at android.os.Handler.dispatchMessage(Handler.java:99)
02-13 16:59:55.905: W/webview_proxy(2352): at android.os.Looper.loop(Looper.java:137)
02-13 16:59:55.905: W/webview_proxy(2352): at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:814)
02-13 16:59:55.905: W/webview_proxy(2352): at java.lang.Thread.run(Thread.java:841)
02-13 16:59:55.913: D/CordovaLog(2352): file:///android_asset/www/edge_includes/edge.3.0.0.min.js: Line 171 : Javascript error in event handler! Event Type = element
02-13 16:59:55.913: I/Web Console(2352): Javascript error in event handler! Event Type = element at file:///android_asset/www/edge_includes/edge.3.0.0.min.js:171
I hope someone knows how to fix it!
Thanks!