我已经在我的目录中有一个.wav文件。 同时,我需要与一个mp3文件一起播放它。 我使用了:
String recordedFile = "/storage/sdcard0/PINOYKARAOKE/1373597371359.wav";
MediaPlayer recordedSong = new MediaPlayer();
try{
recordedSong = MediaPlayer.create(ctx, Uri.fromFile(recordedFile));
recordedSong.prepare();
recordedSong.start();
}
catch(Exception e){
}
错误:创建失败并抛出IOException异常