title: Why does Android WebView display a black screen?
body: <p>I've been banging my head against a wall this afternoon trying to get a WebView to work. Below is the code in the main class:</p>
  
  <pre><code>public class fkyougoogle extends Activity {
      /** Called when the activity is first created. */
   WebView webview;
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          webview = (WebView) findViewById(R.id.webview);
          webview.getSettings().setJavaScriptEnabled(true);
          // WORKS
          //webview.loadUrl("http://www.google.com");
          // DOESN'T WORK
          //webview.loadUrl("http://www.theregister.co.uk");
          //webview.loadData("&lt;html&gt;&lt;body&gt;hello&lt;/body&gt;&lt;/html&gt;", "text/html", "utf-8");
          //webview.loadDataWithBaseURL("fake://", "&lt;html&gt;&lt;body&gt;hello&lt;/body&gt;&lt;/html&gt;", "text/html", "utf-8", "http://www.theregister.co.uk/");
  
      }
  }
  </code></pre>
  
  <p>This is Google's "Hello, Webview" example. If I use a WebView and try to access www.google.com then it works fine. If I try to access any other site then it fails including loadData and it just displays a black screen in the emulator. In the end I would like to read from a local file.</p>
  
  <p> is included under the manifest tag and the XML schema is the same as the Hello Webview example.</p>
  
  <p>Am I missing something obvious here? :(</p>