0

I am trying to stop sound when user exits the application by pressing Hang up key in Series 60. But the application goes to background and the sound still plays.

I want to stop the sound when user clicks the Hang up key of the device. I called the stop() method of Player. I also called the stop() method at hidNotify();

{
    Player p;

    p.start();
    p.stop();
}
gnat
  • 6,213
  • 108
  • 53
  • 73
jayesh
  • 11
  • 6

1 Answers1

1

The AMS calls (or should call) the destroyApp() method of the MIDlet when the user exits.

Try putting your p.stop() command in there. (And other clean-up code too).

mr_lou
  • 1,910
  • 2
  • 14
  • 26