The application has stopped unexpectedly, is it the intent?
<p>I have no idea why I'm having error here "The application has stopped unexpectedly". I have two activities and like to use Intent to call one of them. One activity is progress bar, the other one is webView, I had to delete the import part because It takes so much space: please help </p>

<pre><code>package com.HealthService;
public class Webform extends Activity{
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.webform);

    final ProgressBar Pbar;
    Pbar = (ProgressBar) findViewById(R.id.web_view_progress_bar);

    // progress bar 
    healthform.setWebChromeClient(new WebChromeClient() {
                public void onProgressChanged(WebView view, int progress) {
                   if(progress &lt; 100 &amp;&amp; Pbar.getVisibility() == ProgressBar.GONE){
                       Pbar.setVisibility(ProgressBar.VISIBLE);

                   }
                   Pbar.setProgress(progress);
                   if(progress == 100) {
                       Pbar.setVisibility(ProgressBar.GONE);

                       Intent intent = new Intent (Webform.this, Formwv.class);
                       startActivity(intent);

                   }
                }
            });
        }
        }
</code></pre>

<p>XML File:</p>

<pre><code>     &lt;ProgressBar android:id="@+id/web_view_progress_bar"
    style="?android:attr/progressBarStyleHorizontal" android:layout_width="fill_parent"
    android:layout_height="wrap_content" android:layout_centerVertical="true"
    android:padding="2dip"&gt;
&lt;/ProgressBar&gt;
</code></pre>

<p>Second Activity:</p>

<pre><code>     public class Formwv extends Activity{
    // This is the second Activity, it's too long that's why I didnt' include it, but works fine though
    }
</code></pre>

<p>Manifest File:</p>

<pre><code>&lt;activity android:name=".Webform" android:label="@string/app_name"
    android:theme="@android:style/Theme.NoTitleBar"&gt;
    &lt;/activity&gt;

        &lt;activity android:name=".Formwv" android:label="@string/app_name"
    android:theme="@android:style/Theme.NoTitleBar"&gt;&lt;/activity&gt;
</code></pre>

<p>Also, How do I debug this in eclipse? since I don't see no errors  </p>
