使用Intent Activity之间传值

发送:

//             intent = new Intent(this,xxxxxxx.class); 
//             intent.putExtra("idnumber", idnumber);
//             startActivity(intent);



接收:
         //把传送的身份证号取出来
          Intentintent = getIntent();//两种方法都可以写
          //Intentintent = new Intent(this, RegisterForMoblieActivity.class);
          idnumber =intent.getStringExtra("idnumber");

posted on 2012-12-11 16:24  王大王  阅读(86)  评论(0编辑  收藏  举报

导航