Hello,
I am trying to play file which is stored in SDCARD in emulator. I have Linux O/S. So i need to provide command in run configuration.
I am providing following parameter.
-sdcard /usr/android/sdcard/mysdcard.iso -audio oss
[i]
The following is my code to play file.
try
{
mMediaPlayer.setDataSource("/sdcard/test_cbr.mp3");
mMediaPlayer.prepare(); // Giving error.
mMediaPlayer.start();
}
catch(Exception e)
{
System.out.println("exception="+e.toString());
}
It is giving me error when i am calling prepare(). Cans some one tell me what could be wrong in it ? Am i using wrong separator in run configuration ?



