i have problem if anyone can help me,
2 i am using nokia 6230i
3 i am playing sound/midi and in the middle of playing i have incoming call
4 i release all the player resources using hideNotify()
5 i receive the incoming call then after finish
6 i select option->startplay to initialize and play again the midi/sound and i got "device error" exception until i quit my app and open it back.
notes:
i got no problem if i don't receive the incoming phonecalls. only if i received the phone call this error occured.
here are my codes :
Player mp;
private void playmusic(String filename) throws MediaException, IOException {
mp = Manager.createPlayer("file:///" + filename);
mp.start();
}
public void hideNotify() {
if (mp != null) {
try {mp.stop();}
catch (MediaException ex) {}
mp.deallocate();
mp = null;
}
System.gc();
}
PLEASEEEEEEEE..... HHHEELLLLLPPPPP :-((((
Thank you sooooo muchhh... :-*
warm regrads,
-xins

Reply With Quote


