Android, How to play WAV file programmatically
I already have a .wav file in my directory. at the same time i need to play it together with a mp3 file. I used, 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){ } error: creation failed and it throws IOException Try to create raw folder and put your file there, use this public void number(int num, Context ctx) { AssetManager am; try { am = ctx.getAssets(); AssetFileDescriptor afd = am