阅读背景:

使用Inent 携带 Bundle 携带 数组 传递给另外一个activity

来源:互联网 

在activity发送数组:

public static String [] PhoneAndTime = new String[2];
//new 新的Intent
                    Intent data = new Intent(MainActivity.this, Demo_1.class);
                    //用Bundle 携带数组
                    Bundle bundle = new Bundle();
                    bundle.putStringArray("phone_data", PhoneAndTime);
                    //将 data Intent 添加Bundle
                    data.putExtras(bundle);
                    startActivity(data);public static String [] Ph



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: