I want to play two different sound file when the user clicks the button
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
playSound(this,R.raw.s1);
playSound(this,R.raw.s2);
}
public static void playSound(Context context, int soundID){
MediaPlayer mp = MediaPlayer.create(context, soundID);
mp.start();
}
the problem on this code is the s1 and s2 files are played on the same time , I want to play s1 then if s1 finsh playing s2 file, How can I do that?