Android Mediaplayer play different songs after eachother
问题 I generate midi files on the go. I want to play these files continuously. I initialise a mediaplayer and start song1.mid. Then I use the following code to play song2.mid // set on completion listener music file mediaPlayer .setOnCompletionListener(new MediaPlayer.OnCompletionListener() { @Override public void onCompletion(MediaPlayer mp) { String filePath2 = null; File file = null; FileInputStream inputStream = null; //set the filePath try { filePath2 = getCacheDir() + "/optimuse" + song + "