title: WebView cant be created
body: <p>Hey guys i got a little problem i want to create a WebView by code.
  this is my code i wanna use.</p>
  
  <pre><code>WebView WVakten = new WebView(MainActivity.this);
                  WVakten.setLayoutParams(new LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT));
                  WVakten.setVisibility(View.VISIBLE);
                  WVakten.getSettings().setJavaScriptEnabled(true);
                  WVakten.getSettings().setBuiltInZoomControls(true);
                  WVakten.getSettings().setDefaultZoom(WebSettings.ZoomDensity.CLOSE);
                  WVakten.loadUrl("http://www.google.de");
                  WVakten.setWebViewClient(new WebViewClient(){
                      public boolean shouldOverrideUrlLoading(WebView view, String url) {
                          if (url != null &amp;&amp; url.startsWith("http://")) {
                              view.getContext().startActivity(
                                  new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
                              return true;
                          } else {
                              return false;
                          }}});
  </code></pre>
  
  <p>But when i try to start the app i only get the following error:</p>
  
  <p>08-10 19:03:10.560: W/webcore(7134): Can't get the viewWidth after the first layout</p>
  
  <p>But i simply dont get why i am getting this error.</p>