android Intent 对象的传递

来源:互联网 发布:数据保密性指的是什么 编辑:程序博客网 时间:2024/05/16 05:54

在发送端:

Intent intent = new Intent(W_Activity.this,V_.class);Bundle bundle = new Bundle();bundle.putSerializable("oAuth", oAuth);bundle.putString("open", open);intent.putExtras(bundle);startActivity(intent);

在接收端:

Bundle bundle=getIntent().getExtras();oAuth = (OAuthV1) getIntent().getSerializableExtra("oAuth");open = bundle.getString("open");



原创粉丝点击