发送端:
Intent intent2 = new Intent(this,forget_pass_page.class); Bundle bundle = new Bundle(); Player player = new Player(String.valueOf(username.getText()),String.valueOf(userpass.getText())); bundle.putParcelable("person",player); intent2.putExtras(bundle); startActivity(intent2);
接受端:
Bundle bundle = getIntent().getExtras(); Player player = (Player) bundle.getParcelable("person");
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)