Need help implementing two android activities?
<p>I am trying two initiate two different activities using two buttons and the on click listener I am receiving the following error <em>Multiple markers at this line
    - Syntax error, insert "}" to complete 
     ClassBody
    - Syntax error, insert ";" to complete 
     FieldDeclaration</em></p>

<pre><code>  @Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.safaricom);



    Button button1 = (Button)findViewById(R.id.button1);
    Button button2 = (Button)findViewById(R.id.button2);

    button1.setOnClickListener(buttonClickListener);
    button2.setOnClickListener(buttonClickListener);
}

private OnClickListener buttonClickListener = new View.OnClickListener() {

     @Override
     public void onClick(View v) {

          switch(v.getId()){

          case R.id.button1: 
               Intent intent = new Intent(this, Second.class);
               this.startActivity(intent);
               break;

          case R.id.button2:
              Intent intent = new Intent(this, SignUp.class);
           this.startActivity(intent);
           break;

          }

     }     
}
</code></pre>
