8

ディレクトリに既に .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 をスローします

4

3 に答える 3