activity跳转到另一个activity
https://blog.csdn.net/jiayu0855/article/details/78759471
Intent intent=new Intent(MainActivity.this, SecondActivity.class); startActivity(intent);```
activity之间传递消息
https://blog.csdn.net/blueair_ren/article/details/52818778
1,intent
@1通过Intent向下一个活动发送数据。
String data = "nihao"; Intent intent = new Intent(activity1.this,activity2.class);
intent.putExtra("send_data",data);
startActivity(intent);
@2通过intent接收来自上一个活动的数据。
Intent intent = getIntent();
String data = intent.getStringExtra("send_data");
2.bundle