利用安卓自帶Bundle或者Intent對象封裝數據即可,代碼如下:
Intent i=new Intent(MainActivity.this,Second.class);
Bundle bundle=new Bundle();
bundle.putString("name","里斯");
bundle.putInteger("age",25);
i.putExtra("uerData",bundle);
startActivity(i);
利用安卓自帶Bundle或者Intent對象封裝數據即可,代碼如下:
Intent i=new Intent(MainActivity.this,Second.class);
Bundle bundle=new Bundle();
bundle.putString("name","里斯");
bundle.putInteger("age",25);
i.putExtra("uerData",bundle);
startActivity(i);
01 背景介紹 在智能手機市場上,高端機型經常備受矚目,但低端機型亦佔據了不可忽視的份額。衆多廠商爲滿足低端市場的需求,不斷推出低配系列手機。另外過去幾年的中高端