标签:
案例一
传值:
Intent intent=new Intent();
intent.putExtra("extra", "这是页面一传来的值!");
intent.setClass(Test_for_intentActivity.this,
actpage2.class);
startActivity(intent);
取值:
Intent intent=getIntent();
String StringE=intent.getStringExtra("extra");
TextView text2=(TextView)findViewById(R.id.textView2);
text2.setText(StringE);
打开网页
标签:
原文地址:http://www.cnblogs.com/xiongxiaolang/p/4843576.html