hi
i'd like to develop an application that can play an audio file located in the audio dir on the phone.
Ill'try to do this so:
try {
InputStream in =Connector.openInputStream("file:///audio/canzone.wav");
Player p =Manager.createPlayer(in, "audio/x-wav");
p.start();
} catch (MediaException me) {display.setCurrent(tbError);}
catch (IOException ioe) { display.setCurrent(tbError1);}
but it does not function, can someone help me?
thank's

Reply With Quote

