1Intent intent = new Intent(this, DisplayMessageActivity.class);
2 intent.putExtra(key:,value:);
3 startActivity(intent);
1OnClickListener onClickListener = new OnClickListener() {
2 @Override
3 public void onClick(View v) {
4 startActivity(new Intent(action));
5 }
6};
7
8Button button = (Button) findViewById(id);
9button.setOnClickListener(onClickListener);