title: Help understanding why a webview layout won't load the page
body: <p>I have the following code that works but doesn't use my layout webscreen.</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.webscreen);
      String turl = getIntent().getStringExtra(URL);
      Log.v(TAG, "Recipe url = "+turl); 
  
      WebView webview = new WebView(this);
      setContentView(webview);
  
      webview.clearCache(true);
      webview.loadUrl(turl); 
  </code></pre>
  
  <p>If I change the line setcontentview(webview) to setcontentview(R.layout.webscreen) my layout loads but the web page doesn't.</p>
  
  <p>Sorry I am a newbie.</p>
  
  <p>Kind Regards, </p>
  
  <p>Mike</p>