Android Playing Two Songs Problem
I have a problem playing audio files. when i entered two words like 'hi tom', only last word is playing. But in my log cat it seems to pass first word song. is my code wrong ? or i
Solution 1:
You don't wait for the first sound to finish before you play the next one. Try adding a listener to the mediaplayer, and play the second word after the first one finishes.
Check out the setOnCompletionListener.
Also read the docs here: http://developer.android.com/reference/android/media/MediaPlayer.html
Post a Comment for "Android Playing Two Songs Problem"