发送方:
String data;
Intent intent = new Intent(发送方的活动,接收方的活动);
intent.putExtra("message",data);
startActivity(intent);
接收方:
Intent intent = getIntent();
String data = intent.getStringExtra("message");
发送方:
String data;
Intent intent = new Intent(发送方的活动,接收方的活动);
intent.putExtra("message",data);
startActivity(intent);
接收方:
Intent intent = getIntent();
String data = intent.getStringExtra("message");
转载于:https://my.oschina.net/cdbigheart/blog/368572