I have been trying to play an mp3 audio file in the default media player. Copying the code from here I write my code like this AlertDialog.Builder dialog =
try { //String location = dir1.getCanonicalPath()+"\\app_yamb_test1\\mySound.au"; //displayMessage(location); AudioInputStream audio2 = AudioSystem.