Issue
I've tried to use the following code:
cordovaWebView = (CordovaWebView) findViewById(R.id.cordovaWebView);
cordovaWebView.loadUrl("file:///android_asset/www/index.html");
And I get various URLs injecting javascript like this:
cordovaWebView.loadUrl("javascript:CreateFormPlugin.showPage('1')");
But sometimes I get this issue:
12-12 11:56:32.561: E/dalvikvm(27065): JNI ERROR (app bug): attempt to use stale local reference 0x1
12-12 11:56:32.561: E/dalvikvm(27065): VM aborting
12-12 11:56:32.561: A/libc(27065): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1)
12-12 11:56:41.951: E/CordovaWebView(27065): CordovaWebView: TIMEOUT ERROR!
Any idea on how to solve this problem? :)
Thanks!
Solution
Ok I did it this way: set loadURLTImeOutValue on webview
i.e. adding intent.putExtra("loadUrlTimeoutValue", 60000); to every call to the activity that extends CordovaInterface.
Answered By - Filnik
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.