I\'m new to android and I\'m trying to implement MyFirstApp given on android google developers site, So app contains one textbox and button, if you enter any text in textfie
public void sendMessage(View view) {
// Do something in response to button
Intent intent = new Intent(this, DisplayMessageActivity.class);
EditText editText = (EditText) findViewById(R.id.edit_message);
String message = editText.getText().toString();
intent.putExtra(EXTRA_MESSAGE, message);
this.startActivity(intent);
}