public void uriToActivity(String name, String uri) { Intent intent = new Intent(); intent.setClass(ActivityMain.this, ActivityUser.class); Bundle bundle = new Bundle(); bundle.putString("name", name); bundle.putString("uri", uri); intent.putExtras(bundle); startActivity(intent); } //
publicvoid onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle bundle = this.getIntent().getExtras();
if (bundle != null) {
uri = bundle.getString("uri");
name = bundle.getString("name");
}
}
交互式爱情
相关分类