传递:
Bundle b=newBundle();
b.putStringArray(key,newString[]{value1, value2});
Intent i=newIntent(context,Class);
i.putExtras(b);
eg:
Intent intent = new Intent();
intent.setClass(VideoActivity.this, PlayActivity.class);
Bundle bundle=new Bundle();
bundle.putStringArray("video", videolist);
intent.putExtras(bundle);
startActivity(intent);
接受:
Bundle b=this.getIntent().getExtras();
String[] array=b.getStringArray(key);
eg:
Intent intent = this.getIntent();
bundle = intent.getExtras();
videolist = bundle.getStringArray("video");