tags:

views:

78

answers:

1

How to send any message from one activity to anothere using intent and intent filters.

+1  A: 

you use the putExtras(Bundle) method of the Intent

Bundle extras = new Bundle();
extras.putString("my.unique.extras.key", "this is my message");
myIntent.putExtras(extras);

Then in the Intent you retrieve the extras

Bundle extras = this.getIntent().getExtras();
if ( extras != null ) {
  if ( extras.containsKey("my.unique.extras.key") ) {
    this.setTitle(extras.getString("my.unique.extras.key"));
  }
}

this is a duplicate question.

Ryan Conrad