title: WebView.loadUrl(url) does nothing
body: <p>I recently wrote up a simple Twitter app for Android to learn the ropes of the Twitter API and OAuth.</p>
  
  <p>The app's main activity simply asks for a username to follow. It then calls another activity which handles the OAuth &amp; Twitter API calls. It redirects the user to an authorization page, which then returns to the app after the user finishes.</p>
  
  <p>It used to work just fine, but now for some reason  when I call webview.loadUrl(authorizationURL), NOTHING happens. I never changed anything that would affect the WebView stuff though... Here's my code:</p>
  
  <pre><code>@Override
  public void onResume() {
      super.onResume();
      try {
  
          if(weNeedCredentials()) {
              obtainCredentials();
          }
  
          follow(mUsername);
  
      } catch (OAuthException oae) {
          // omitted
      }
  }
  
  
  private boolean weNeedCredentials() {
      // assume the method returns true
  }
  
  
  private void obtainCredentials() {
      final Token requestToken = mOauthService.getRequestToken();
      String authUrl = mOauthService.getAuthorizationUrl(requestToken);
      // I verified that authUrl is the correct url (and != null)
  
      final WebView oauthView = (WebView) findViewById(R.id.oauthview);
  
      oauthView.setWebViewClient(new WebViewClient() {
          @Override
          public boolean shouldOverrideUrlLoading(WebView view, String url) {
              if(someCondition) {
                  oauthView.setVisibility(View.GONE);
  
                  doOtherStuff();
  
                  return true;
              }
              return super.shouldOverrideUrlLoading(view, url);
          }
      });
  
      oauthView.getSettings().setJavaScriptEnabled(true);
      oauthView.loadUrl(authUrl);
  
  }
  </code></pre>
  
  <p>Here's my layout xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"&gt;
  
      &lt;WebView 
          android:id="@+id/oauthview"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
      /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and also I included the proper Internet permissions in the Manifest.</p>
  
  <p>A WebViewCoreThread is running for the life of the app, and a WebViewWorkerThread pops in later, but no WebView ever comes up (not even a white screen). The app never blocks either. It continues running as if the loadUrl() line were simply commented out.</p>
  
  <p>I've tested on my phone (Droid X2) as well as an emulator, both with the same results. Any help would be greatly appreciated.</p>
  
  <p>Thanks in advance!</p>