아래에 있는 것을 바탕으로 mpthree.mp3 라는 음악을 실행해 보고 싶습니다. 그래서

mp = MediaPlayer.create(context, R.raw.mpthree);
mp.start();

를 했는데 에뮬에서는 안돌아가는군요 .
( context 는 view 에서 사용하는데 Context context를 썻구요. )
( mpthree.mp3 는 res/raw라는 폴더 안에 넣었습니다.)

mp3 재생이 되는지 궁금합니다.


Playing from a Raw Resource

Perhaps the most common thing to want to do is play back media (notably sound) within your own applications. Doing this is easy:

  1. Put the sound (or other media resource) file into the res/raw folder of your project, where the Eclipse plugin (or aapt) will find it and make it into a resource that can be referenced from your R class
  2. Create an instance of MediaPlayer, referencing that resource using MediaPlayer.create, and then call start() on the instance:
    MediaPlayer mp = MediaPlayer.create(context, R.raw.sound_file_1);
    mp.start();

To stop playback, call stop(). If you wish to later replay the media, then you must reset() and prepare() the MediaPlayer object before calling start() again. (create() calls prepare() the first time.)

To pause playback, call pause(). Resume playback from where you paused with start().