I'm creating an android webview that loads a simple html page:
WebView myWebView = (WebView) findViewById(R.id.webview);
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setAllowContentAccess(true);
myWebView.loadUrl("http://10.0.2.2/external/login.html");
But for some reason, when the page loads it is loading http://10.0.2.2/external/index.html all the time, even if I explicitly specify a different html page such as login.html above. I'm running a simple http server at http://10.0.2.2/ (my local machine). Is there a setting somewhere that causes this? How can I make it load the page I want it to and not index.html?
Thanks.