您的位置:首页 > 其它

Intent带参数跳转

2015-06-25 14:03 405 查看
传递方:

[code]Intent intent = new Intent();
       Bundle bundle = new Bundle();
       bundle.putString("XXX", XXX);
       intent.setClass(ActivityMain.this,XXX.class);
       intent.putExtras(bundle);
       startActivity(intent);


接收方:

[code]Bundle bundle = new Bundle();
         bundle = this.getIntent().getExtras();
         double XXX=  bundle.getString("XXX");
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: