Java tutorial
//package com.java2s; import android.media.MediaPlayer; public class Main { public static void wait_sound(MediaPlayer _sound) { if (_sound != null) { while (_sound.isPlaying()) { try { Thread.sleep(10L); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } } }