Application force close
<pre><code>public class CityOfCulture extends Activity 
{
    /** Called when the activity is first created. */


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

     Button buttonA = (Button)findViewById(R.id.button1);
     buttonA.setOnClickListener(new View.OnClickListener(){
         public void onClick(View v) {
         // TODO Auto-generated method stub
                 Intent i = new Intent(getBaseContext(), OpenSplash.class);
                 startActivity(i);
             }
             });}}

package com.cityofcultureapp;

import com.cityofcultureapp.R;
import android.app.Activity;
import android.os.Bundle;


public class OpenSplash extends Activity {
        public void onCreate(Bundle savedInstanceState){
            super.onCreate(savedInstanceState);
            setContentView(R.layout.splash);
        }}
</code></pre>

<p>and in the xml file the button has the following xml code:</p>

<pre><code>Button 
        android:layout_height="60dip" 
        android:id="@+id/button1" 
        android:text="Button"
        android:layout_width="60dip" 
        android:textStyle="bold"
        android:clickable="true"
</code></pre>

<p>Fix the android application error, app closes when I click a button with the following code:</p>

<p>I am new to android development and am not the most experienced programmer so any help would be appreciated.</p>
