title: Unfortunately myapp has stopped
body: <p>I am getting Application has stopped. The project changes scene to MainAplication to JobList but, Job List to ExerciseList, ı am gettin these "Unfortunately application has stopped." on emulator.Here is my classes. I am also gettin FATAL EXCEPTİN on logcat.</p>
  
  <p>ApplicationMain.java</p>
  
  <pre><code>    import android.app.Activity;
      import android.content.Intent;
      import android.os.Bundle;
      import android.view.View;
      import android.widget.Button;
      import android.widget.EditText;
  
      public class ApplicationMain extends Activity {
  /** Called when the activity is first created. */
  EditText nameEditCtrl;
  Button btnCtlr;
  String name;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      nameEditCtrl = (EditText) findViewById(R.id.editText1);
      btnCtlr = (Button) findViewById(R.id.button1);
      btnCtlr.setOnClickListener(new ButtonClickHandler());
  }
  
  public class ButtonClickHandler implements View.OnClickListener {
      public void onClick(View view) {
          if (nameEditCtrl != null &amp;&amp; nameEditCtrl.getText().length() != 0) {
              name = nameEditCtrl.getText().toString();
          } else {
              name = "Guest";
          }
          Intent intObj = new Intent(ApplicationMain.this,
                  JobList.class);
          intObj.putExtra("USERNAME", name);
          startActivity(intObj);
      }
  }
   }
  </code></pre>
  
  <p>JobList.Java</p>
  
  <pre><code>    import android.app.Activity;
      import android.content.Intent;
      import android.os.Bundle;
      import android.view.View;
      import android.widget.Button;
      import android.widget.EditText;
      import android.widget.ImageButton;
      import android.widget.TextView;
  
      public class JobList extends Activity {
  TextView greetMsg;
  ImageButton ib;
  
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.joblist);
      greetMsg = (TextView) findViewById(R.id.textView1);
      Intent intename = getIntent();
      String uname = (String) intename.getSerializableExtra("USERNAME");
      greetMsg.setText("Welcome " + uname);
  
  
  
      ib = (ImageButton) findViewById(R.id.imageButton1);
      ib.setOnClickListener(new View.OnClickListener() {
          public void onClick(View v) {
              Intent intObj = new Intent(JobList.this,ExerciseList.class);
              startActivity(intObj);
          }
      });
  
  
  
  
  
      }
  
  }
  </code></pre>
  
  <p>ExerciseList.Java</p>
  
  <pre><code>      import android.app.Activity;
        import android.content.Intent;
        import android.os.Bundle;
        import android.view.View;
        import android.widget.Button;
        import android.widget.EditText;
        import android.widget.ImageButton;
        import android.widget.TextView;
  
  
       public class ExerciseList extends Activity {
  
  ImageButton iz;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.exerciselist);
  
      iz = (ImageButton) findViewById(R.id.imageButton2);
          iz.setOnClickListener(new View.OnClickListener() {
          public void onClick(View v) {
  
              Intent intObj = new Intent(ExerciseList.this,
                      ApplicationMain.class);
              //intObj.putExtra("USERNAME", name);
              startActivity(intObj);
          }
      });
  
  
  }
   }
  </code></pre>
  
  <p>AndroidManifest.xml</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.prgguru.android"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  
  &lt;uses-sdk android:minSdkVersion="14" android:targetSdkVersion="15" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  
  
  &lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name" &gt;
      &lt;activity
          android:name=".ApplicationMain"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".JobList"
          android:label="@string/app_name" &gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  
       &lt;/manifest&gt;
  </code></pre>