I am trying to switch activity's with the use of a button.

Skillz.java

```
Button b2 =(Button)findViewById(R.id.button2);
b2.setOnClickListener(new OnClickListener() {
    public void onClick(View v) {
        Intent myintent = new Intent();
        String packageName="marco.skillz.app";
        String className="marco.skillz.app.act2";
        myintent.setClassName(packageName, className);
        startActivity(myintent);
    }
});

```

act2.java

```
@Override
public void onCreate(Bundle savedInstanceState){
    super.onCreate(savedInstanceState);
    setContentView(R.layout.page2);
}

```

When the app run in the emulator I get the following error:

```
The application "app name" (process marco.skillz.app) has stopped unexpectedly.

```

FIXED!! I feel so stupid i had android:name=".act1" when it should be android:name=".act2".

Thanks for all your input :P