Play list of mp3 file with MediaPlayer in Android
问题 I have a problem to reproduce more than one mp3 file using MediaPlayer in Android. I'm able to reproduce one single file but I did not find nothing useful to reproduce different files one after the other. The code that now I use to reproduce one file is: public MediaPlayer mediaPlayer = null; public void playP(View view) { if (mediaPlayer == null) { mediaPlayer = MediaPlayer.create(MainActivity.this, R.raw.music); } mediaPlayer.start(); } How can I modify it to reproduce more a list of file?