我的目录中已经有一个.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){
}
Run Code Online (Sandbox Code Playgroud)
错误:创建失败并抛出IOException