title: Android WebView does not load URL?
body: <p>I have an Android WebView which should load the following URLs: </p>
  
  <pre><code>https://buchung.salonmeister.de/ort/301655/menue/#offerId=907601&amp;venueId=301655
  
  https://buchung.salonmeister.de/place/#offer-details-page?id=907599&amp;venueId=301655
  </code></pre>
  
  <p>Here is what I did: </p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  xmlns:tools="http://schemas.android.com/tools"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:background="@android:color/holo_orange_light"
                  tools:context=".MainActivityFragment"&gt;
  
  
  
      &lt;WebView
          android:id="@+id/webView"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:layout_alignParentBottom="true"
          android:layout_margin="5dp"
          android:layout_above="@+id/progressBar"&gt;&lt;/WebView&gt;
  
  
      &lt;ProgressBar
          android:id="@id/progressBar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:visibility="invisible"
          style="?android:attr/progressBarStyleHorizontal"/&gt;
  
      &lt;TextView
          android:id="@+id/titleView"
          android:text="@string/hello_world"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>In <code>onCreateView()</code>:</p>
  
  <pre><code>  @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
         View v = inflater.inflate(R.layout.fragment_main, container, false);
  
          String url = // some url
          final ProgressBar progressBar = (ProgressBar)v.findViewById(R.id.progressBar);
          progressBar.setMax(100);
  
          final TextView titleView = (TextView)v.findViewById(R.id.titleView);
  
  
          mWebView = (WebView)v.findViewById(R.id.webView);
          mWebView.getSettings().setJavaScriptEnabled(true);
          mWebView.getSettings().setAllowFileAccess(true);
          mWebView.getSettings().setAllowContentAccess(true);
  
          mWebView.setWebViewClient(new WebViewClient() {
            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
              return false;
            }
          });
  
          mWebView.setWebChromeClient(new WebChromeClient() {
            @Override
            public void onProgressChanged(WebView view, int progress) {
              if (progress == 100) {
                progressBar.setVisibility(View.INVISIBLE);
                progressBar.setProgress(0);
              } else {
                progressBar.setVisibility(View.VISIBLE);
                progressBar.setProgress(progress);
              }
            }
  
            @Override
            public void onReceivedTitle(WebView view, String title) {
              titleView.setText(title);
            }
          });
          mWebView.loadUrl(url);
  
          return v;
  }
  </code></pre>
  
  <p>The screen is empty when I start my activity. </p>
  
  <p><strong>Note: This is not a layout issue. Please do not comment on layout and focus on the real problem.</strong></p>
  
  <p><strong>How can I load the above urls in a WebView?</strong></p>
  
  <p>Edit: Here are the permissions I gave: </p>
  
  <pre><code>    &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  </code></pre>
  
  <p>Edit: </p>
  
  <p>In my console I get the following: </p>
  
  <pre><code>I/chromium: [INFO:CONSOLE(84)] "undefined", source: https://buchung.salonmeister.de/place/ (84)
  
  09-13 15:12:33.230 28407-28407/de.test.webviewtest I/chromium: [INFO:CONSOLE(1)] "Uncaught Error: Script error for: widget/venue-menu/mobile/venue-menu-app
  09-13 15:12:33.230 28407-28407/de.test.webviewtest I/chromium: http://requirejs.org/docs/errors.html#scripterror", source: https://buchung.salonmeister.de/javascript-module/1.162.3/thirdparty/require.2.1.10.js (1)
  </code></pre>