Im trying to work with android's webview to show website that is implemented with sencha touch.
The website works fine on my built-in browser / chrome / desktop, but when I use my webview, it will stuck at the first page.
The website is implemented such that at first a "loading indicator" is shown, while all .js dependencies are being downloaded. there's a callback Ext.require(classes, this.onDependenciesLoaded, this);
in the code which then, removes the indicator and draws the website.
It seems that in my webview it wont get to onDependenciesLoaded
(I always see the indicator, even after download is complete)
Is there a way to debug the webview itself, similar to developer tools?
This is how I initialize webview:
//get webView
webView = (WebView) findViewById(R.id.webView);
webView.setWebViewClient(new WebViewClient());
//Allow running JS code
webView.getSettings().setJavaScriptEnabled(true);
//JS->JAVA interface
webView.addJavascriptInterface(new JSInterface(this), JAVASCRIPT_INTERFACE_OBJECT);
//Allow Zoom
webView.getSettings().setBuiltInZoomControls(true);
webView.getSettings().setSupportZoom(true);
I have tried some other settings enabled, yet nothing seemed to help, so I stick to the basic version of my code.