title: Is there a better way to refresh WebView?
body: <p>Ok.  I have looked EVERYWHERE and my little brain just can't understand a better way to refresh an activity.  Any suggestions that I can understand would be great.  :)</p>
  <p>Here is the java code:</p>
  <pre><code>package com.dge.dges;
  
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.View;
  import android.webkit.WebView;
  import android.widget.Button;
  
  public class dgeActivity extends Activity {
  
      WebView mWebView;
  
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          mWebView = (WebView) findViewById(R.id.webview);
          mWebView.getSettings();
          mWebView.loadUrl(&quot;http://www.websitehere.php&quot;);
          
          Button newButton = (Button)findViewById(R.id.new_button);
          newButton.setOnClickListener(new View.OnClickListener() {
              public void onClick(View v) {
                  Intent intent = new Intent(dgeActivity.this, dgeActivity.class);
                  startActivity(intent);
              }
          });
      }
  }
  </code></pre>
  <p>And here is the <code>main.xml</code></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;RelativeLayout
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:id=&quot;@+id/RelativeLayout&quot;
      android:layout_width=&quot;fill_parent&quot;
      android:layout_height=&quot;fill_parent&quot;
      android:background=&quot;#000000&quot;&gt;
  
      &lt;WebView
          android:id=&quot;@+id/webview&quot;
          android:layout_width=&quot;fill_parent&quot; 
          android:layout_height=&quot;wrap_content&quot;
          android:scrollbars=&quot;none&quot;/&gt;
  
      &lt;Button
          android:id=&quot;@+id/new_button&quot;
          android:layout_width=&quot;fill_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentBottom=&quot;true&quot;
          android:layout_centerHorizontal=&quot;true&quot;
          android:text=&quot;Refresh&quot;/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p>I don't like the idea of just re-stacking activity after activity.  There has to be an easier way to refresh the webview.  Please help.  :)</p>