Invoke Source Activity object’s startActivity(intent) method to pass the intent object to the android os.intent.putExtra("message", "This message comes from PassingDataSourceActivity's first button") Invoke the above intent object’s putExtra(String key, Object data) method to store the data that will pass to Target Activity in it.Intent intent = new Intent(PassingDataSourceActivity.this, PassingDataTargetActivity.class)
0 Comments
Leave a Reply. |