【发布时间】:2018-01-12 01:45:00
【问题描述】:
这是第一个活动
Intent intent = new Intent(Songs.this,PlayingSong.class);
Bundle bundle=new Bundle();
bundle.putStringArray("data",songs);
intent.putExtras(bundle);
startActivity(intent);
这是第二个活动
tv = (TextView)findViewById(R.id.playingSongName);
imge = (ImageView)findViewById(R.id.playingImage);
Bundle bundle = getIntent().getExtras();
String[] arrRecd = bundle.getStringArray("data");
tv.setText(arrRecd[]);
【问题讨论】:
-
那么你的问题是什么?它不工作吗?
bundle是否为空?有什么问题
标签: android android-layout listview