protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
String path = songs.get(position);
//把保存了歌曲地址的intent传递给MusicPlayer
Intent intent_path = new Intent();
//跳换Activity
intent_path.setClass(this, MusicPlayer.class);
intent_path.setAction(MusicService.SONG_LIST);
Bundle bundle_path = new Bundle();
bundle_path.putString("song_path", MEDIA_PATH+path);
intent_path.putExtras(bundle_path);
startActivity(intent_path);
finish();
}
这里是一个播放列表,这里获取的路径将会传递到播放界面,在播放界面可以实现上一首,下一首,和播放操作,请问怎么实现啊大哥们?还有弱弱的问问一个startActivity()可以同时传递三个intent吗
super.onListItemClick(l, v, position, id);
String path = songs.get(position);
//把保存了歌曲地址的intent传递给MusicPlayer
Intent intent_path = new Intent();
//跳换Activity
intent_path.setClass(this, MusicPlayer.class);
intent_path.setAction(MusicService.SONG_LIST);
Bundle bundle_path = new Bundle();
bundle_path.putString("song_path", MEDIA_PATH+path);
intent_path.putExtras(bundle_path);
startActivity(intent_path);
finish();
}
这里是一个播放列表,这里获取的路径将会传递到播放界面,在播放界面可以实现上一首,下一首,和播放操作,请问怎么实现啊大哥们?还有弱弱的问问一个startActivity()可以同时传递三个intent吗
Bundle bundle_path = new Bundle();
bundle_path.putString(key,new String[]{Path,Path1,Path2});