title: local page in webview not showing
body: <p>Using webView.loadUrl is working for https site , but not with my local page which is located in <strong>/Applications/MAMP/htdocs/test.html</strong></p>
  
  <pre><code>webView.loadUrl("/Applications/MAMP/htdocs/test.html") is not working
  webView.loadUrl("http://localhost:8080/test.html"); is not working
  </code></pre>
  
  <p>Below is the test.html file </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Sample Page&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;h2&gt;JS alert Example&lt;/h2&gt;
  
  &lt;button onclick="myFunction()" &gt;Try it&lt;/button&gt;
  
  &lt;script&gt;
  function myFunction (){
      Android.showToast("Sample Android toast message");
  }
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Now I want to load this page using webView .</p>
  
  <p>Below is the mainactivity.java code </p>
  
  <pre><code>    public class MainActivity extends AppCompatActivity {
      private WebView webView;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          getSupportActionBar().hide();
          webView = (WebView) findViewById(R.id.webview);
          webView.loadUrl("http://127.0.0.1:8080/test.html");
  
          WebSettings webSettings = webView.getSettings();
          webSettings.setJavaScriptEnabled(true);
          webView.setWebViewClient(new WebViewClient());
          webView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
          webView.addJavascriptInterface(new WebAppInterface (this), "Android");
  
  
  
      }
  }
  </code></pre>
  
  <p>Below is my WebInterface java class : </p>
  
  <pre><code>public class WebAppInterface {
  
      private Context context;
  
      public WebAppInterface (Context context){
          this.context = context;
      }
  
      @JavascriptInterface
      public void showToast (String message){
          Toast.makeText(context,message,Toast.LENGTH_LONG).show();
      }
  }
  </code></pre>
  
  <p>Now ,I cant understand why it is not loading the web page mentioned in webView.loadUrl . Note: I having given internet permissions in manifest file. </p>