I am trying to play an audio. It works well on the simulator but on android device, its not working
Util.downloadUrlToStorageInBackground((voicemailURL, fileName, new ActionListener(){
public void actionPerformed(ActionEvent evt) {
try {
mp= MediaManager.createMedia(voicemailURL,"audio/mp3");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
mp.play();
}
}
});