Intent传递简单的类型
利用Intent传递数据
跳转前的Activity:
Intent intent = new Intent(MainActivity.this, ChatActivity.class);
inten.putExtra("type", "sliver");
startActivity(intent);
跳转后的Activity:
Intent intent = getIntent();
String type = intent.getStringExtra("type");
Intent传递对象
未完待续...