Bundle传值问题

                Intent it=new Intent(login.this,RegisterActivity.class);
                Bundle bundle=new Bundle();
                bundle.putString("phone",phone);
                bundle.putString("country",country);
                it.putExtras(bundle);

 接收端

Intent it=getIntent();
        Bundle bundle=it.getExtras();
        phone=bundle.getString("phone");

 

posted @ 2015-06-11 22:18  刘探荣  阅读(588)  评论(0编辑  收藏  举报