Though you not provide enough information but you can try like this..
private Button buttonCancle;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.wishingpage);
buttonCancel = (Button)findViewById(R.id.Cancel);
buttonCancel.setOnClickListener(this);
}
public void onClick(View v) {
switch (v.getId()) {
case R.id.buttonCancel:
break;
}
}