Professional Documents
Culture Documents
So I Found This Sample and It Works For Me, Here It Is If You Have The Same Issue: in Mymain - Java
So I Found This Sample and It Works For Me, Here It Is If You Have The Same Issue: in Mymain - Java
vote
accepted
So I found this sample and it works for me, here it is if you have the
same issue:
in myMain.java
import android.app.Activity;
import android.os.Bundle;
import java.io.IOException;
import
import
import
import
import
import
import
import
android.media.MediaPlayer;
android.media.MediaPlayer.OnBufferingUpdateListener;
android.media.MediaPlayer.OnPreparedListener;
android.util.Log;
android.view.View;
android.view.View.OnClickListener;
android.widget.Button;
android.widget.ProgressBar;
initializeMediaPlayer();
} else if (v == buttonStopPlay) {
stopPlaying();
}
}
}
player.stop();