Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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();
                }
            }
        }
    }
}