2012年2月26日日曜日

play mp3

I try to play mp3 music file.
I create MediaPlayer class.
MediaPlayer mP = new MediaPlayer();
I set mp3 file.
mP.setDataSource("/sdcard/music/sample.mp3");
I call prepare() api and start() api.
mP.prepare();
mP.start();
prepare() and setDataSource() need try and catch.
source code is here.
Please suggest your android issue by twitter or mail, I would try to clear up your issue.

0 件のコメント:

コメントを投稿