a頁 要去 b頁
Intent intent = new Intent();
Bundle bundle = new Bundle();
intent.setclass(這頁class name.this,要去的業面.class):
bundle.putString("name","value");
intent.putExtras(bundle);
startactivity(intent);
b頁接收
Bundle bundle = getIntent().getExtras();
String uwant = bundle.getString("name");
uwant = "value";
以上 |