try {
AssetFileDescriptor afd = getAssets().openFd("audio/" + Lesson_Mp3.get(noteIndex)+".mp3");
MediaPlayer audio_play = new MediaPlayer();
audio_play.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());
afd.close();
audio_play.prepare();
audio_play.start();
audio_play.stop();
}catch(Exception e) {
Log.d("Audio", "playback Failed.", e);
}
이 소스 상태에서 audio_play.stop(); 을 해버렸더니 아예 애가 재생을 안하네요;;
어떻게 루트를 추가해야 1회 재생하고 그 이후로 재생을 안하는지 알고 싶습니다..