XeListFragment xe_list = new XeListFragment();
FragmentManager fragmentManager = getActivity().getSupportFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.replace(R.id.container, xe_list);
fragmentTransaction.commit();
if (mediaPlayer == null){
this.url = intent.getStringExtra(EXTRA_AUDIO_URL);
try {
mediaPlayer.reset();
It may take some time before the state is updated in calls to isPlaying(), and it can be a number of seconds in the case of streamed content.ссылка.
for(;;){
items.add(jArr[i]);
}