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();
      }
      }
});

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/8426f227-ad35-42db-b206-10d234d14af3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to