Hi everyone, please help me to solving my problem.
I have some codes like shown below. My code can play audio file from emulator but not in Handphone.

private void playLagu(String nada) {
Player p = null;
try {
FileConnection connection = (FileConnection) Connector.open("file:///" + nada);
InputStream inStream = connection.openInputStream();

if (p == null || p.getState() != Player.STARTED) {
p = Manager.createPlayer(inStream, "audio/x-wav");
p.start();
}
nada = "";
} catch (IOException ex) {
ex.printStackTrace();
} catch (MediaException ex) {
ex.printStackTrace();
}
}
Thank you very muh