String file = Environment.getExternalStorageDirectory().getAbsolutePath();
String sound = file+"/loop.mp3";
"/loop.mp3";
}
Log.e(
"12", ""+sound);
//System.out.println("Before Allocation file is: "+file);
//rePlay.setText("Stop");
mPlayer = new MediaPlayer();
try
{
mPlayer.setDataSource(sound);
mPlayer.prepare();
mPlayer.start();
}
catch (Exception e)
{
Log.e(
"c", "prepare() failed");
}
No comments:
Post a Comment