title: Android webview within application not loading
body: <p>The intent of this is to have a webpage firing <em>within</em> the app itself. The app runs without glitches, but the webpage is never seen. The .xml contains the webpage and a list beneath it.</p>
  
  <p>The .xml file reads as</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:orientation="vertical"
                android:layout_centerVertical="true"
                android:layout_width="match_parent"
                android:layout_height="match_parent"&gt;
  
       &lt;WebView  xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/webview"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          /&gt;
  
      &lt;ListView
          android:layout_width="fill_parent"
          android:layout_height="500dp"
          android:id="@android:id/list"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The activity in the .java reads as</p>
  
  <pre><code>@Override
  protected void onCreate(final Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      WebView myWebView = new WebView(this);
      myWebView.getSettings().setJavaScriptEnabled(true);
      myWebView.setWebViewClient(new WebViewClient());
      myWebView.loadUrl("https://google.com");
  
      // Other AWS gibberish
  }
  </code></pre>
  
  <p>I can get the webpage to fire as an separate application, but this is not what I want. </p>
  
  <pre><code>    WebView webview = new WebView(this);
      setContentView(webview);
      webview.getSettings().setJavaScriptEnabled(true);
      webview.loadUrl("http://google.ca");
  </code></pre>
  
  <p>Edit: I have already added the internet permission to the manifest</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  </code></pre>
  
  <p>Some references I have been using <a href="https://stackoverflow.com/questions/13542982/android-webview-stay-in-app">here</a>, <a href="https://stackoverflow.com/questions/2378800/clicking-urls-opens-default-browser">here</a>, <a href="https://stackoverflow.com/questions/7746409/android-webview-launches-browser-when-calling-loadurl">here</a> and <a href="https://developer.android.com/guide/webapps/webview.html" rel="nofollow noreferrer">documentation</a> without success</p>
  
  <p>Edit 2: Going through the device debug files and the following are being logged</p>
  
  <pre><code>10-18 22:07:59.296 7717-7717/com.amazon.mysampleapp I/WebViewFactory: Loading com.google.android.webview version 53.0.2785.124 (code 278512400)
  10-18 22:07:59.306 7717-7826/com.amazon.mysampleapp I/System.out: (HTTPLog)-Static: SBServiceAPI: getService class android.os.ServiceManager
  10-18 22:07:59.306 7717-7826/com.amazon.mysampleapp I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
  10-18 22:07:59.306 7717-7826/com.amazon.mysampleapp I/System.out: (HTTPLog)-Static: isShipBuild true
  10-18 22:07:59.306 7717-7826/com.amazon.mysampleapp I/System.out: (HTTPLog)-Thread-46729-141117018: SmartBonding Enabling is false, SHIP_BUILD is true, log to file is false, DBG is false
  10-18 22:07:59.306 7717-7826/com.amazon.mysampleapp I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
  10-18 22:07:59.336 7717-7826/com.amazon.mysampleapp I/System.out: KnoxVpnUidStorageknoxVpnSupported API value returned is false
  10-18 22:07:59.336 7717-7717/com.amazon.mysampleapp I/art: Rejecting re-init on previously-failed class java.lang.Class&lt;com.android.webview.chromium.ServiceWorkerControllerAdapter&gt;
  10-18 22:07:59.336 7717-7717/com.amazon.mysampleapp I/art: Rejecting re-init on previously-failed class java.lang.Class&lt;com.android.webview.chromium.ServiceWorkerControllerAdapter&gt;
  10-18 22:07:59.336 7717-7717/com.amazon.mysampleapp I/art: Rejecting re-init on previously-failed class java.lang.Class&lt;com.android.webview.chromium.TokenBindingManagerAdapter&gt;
  10-18 22:07:59.346 7717-7717/com.amazon.mysampleapp I/art: Rejecting re-init on previously-failed class java.lang.Class&lt;com.android.webview.chromium.TokenBindingManagerAdapter&gt;
  10-18 22:07:59.366 7717-7717/com.amazon.mysampleapp I/cr_LibraryLoader: Time to load native libraries: 6 ms (timestamps 655-661)
  10-18 22:07:59.366 7717-7717/com.amazon.mysampleapp I/cr_LibraryLoader: Expected native library version number "53.0.2785.124", actual native library version number "53.0.2785.124"
  10-18 22:07:59.376 7717-7717/com.amazon.mysampleapp W/ResourceType: Failure getting entry for 0x01080ad1 (t=7 e=2769) (error -75)
  10-18 22:07:59.386 7717-7717/com.amazon.mysampleapp I/cr_LibraryLoader: Expected native library version number "53.0.2785.124", actual native library version number "53.0.2785.124"
  10-18 22:07:59.396 7717-7717/com.amazon.mysampleapp I/chromium: [INFO:library_loader_hooks.cc(151)] Chromium logging enabled: level = 0, default verbosity = 0
  10-18 22:07:59.436 7717-7717/com.amazon.mysampleapp I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
  10-18 22:07:59.606 7717-7826/com.amazon.mysampleapp I/DefaultDeliveryClient: Successful submission of 4 events
  10-18 22:07:59.646 7717-7843/com.amazon.mysampleapp W/cr_media: Requires BLUETOOTH permission
  10-18 22:07:59.686 7717-7717/com.amazon.mysampleapp I/art: Rejecting re-init on previously-failed class java.lang.Class&lt;com.android.webview.chromium.WebViewContentsClientAdapter$WebResourceErrorImpl&gt;
  10-18 22:07:59.696 7717-7717/com.amazon.mysampleapp I/art: Rejecting re-init on previously-failed class java.lang.Class&lt;com.android.webview.chromium.WebViewContentsClientAdapter$WebResourceErrorImpl&gt;
  10-18 22:07:59.736 7717-7717/com.amazon.mysampleapp D/ConnectivityManager: CallingUid : 10097, CallingPid : 7717
  10-18 22:07:59.736 7717-7854/com.amazon.mysampleapp D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524290
  10-18 22:07:59.766 7717-7717/com.amazon.mysampleapp I/art: Rejecting re-init on previously-failed class java.lang.Class&lt;org.chromium.content.browser.FloatingWebActionModeCallback&gt;
  10-18 22:07:59.766 7717-7717/com.amazon.mysampleapp I/art: Rejecting re-init on previously-failed class java.lang.Class&lt;org.chromium.content.browser.FloatingWebActionModeCallback&gt;
  </code></pre>