Bundle bundle = this.getIntent().getExtras();求这个代码的详细意思,比如,Bundle和bundle的含义?
publicvoiduriToActivity(Stringname,Stringuri){Intentintent=newIntent();intent.setClas...
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");
}
} 展开
publicvoid onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle bundle = this.getIntent().getExtras();
if (bundle != null) {
uri = bundle.getString("uri");
name = bundle.getString("name");
}
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询