Hi folks,
When the .mp3 file was in the res/raw folder, it played fine but when I tried to play it from another source using :
final String = " D:\\sample.mp3";
MediaPlayer mp = new MediaPlayer();
mp.setDataSource(path);
mp.prepare();
mp.start();
it doesn't play.
What could be the problem?
When the .mp3 file was in the res/raw folder, it played fine but when I tried to play it from another source using :
final String = " D:\\sample.mp3";
MediaPlayer mp = new MediaPlayer();
mp.setDataSource(path);
mp.prepare();
mp.start();
it doesn't play.
What could be the problem?