我的电话簿中已经有了.wav文件。 在同一时间我需要与一个MP3文件一起播放。 我用,Android,如何以编程方式播放WAV文件
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异常
谢谢@aangwi – ceosilvajr