After some convenient experiments, finally I got my solution using
mPlayer.setLooping(true);
mPlayer is an instance of the MediaPlayer class. Although this line of code encodes the code, it has several gaps between consecutive sounds. However, finally it works for me. Anyone can try the MediaPlayer class. its really awesome for processing an audio file.
source share