I have multiple audio files in the assets directory of my application. When the user clicks a button I want to play those files in a certain order, one after the other. There shouldn't be any noticeable lag between the audio files. What is the best approach to achieve this?
I am thinking of using MediaPlayer
objects and OnCompletionListener
s. But, that would mean I have to create a lot of OnCompletionListener
s because I need to know every time which audio file is next. Am I missing something or is there a better approach?