akhil
akhil

Reputation: 85

Event called on pressing menu button in nokia touch device

I made a J2ME application(2D game) for nokia touch device like C7, N8 etc. When I press the menu button while the gameplay is on, I reach the home screen on the device, but in the background, the game music still plays. Can anyone tell me which event is called on pressing the menu button, and any possible solution to this problem?

Upvotes: 3

Views: 194

Answers (2)

Ameer Moaaviah
Ameer Moaaviah

Reputation: 1526

Call player.stopPlayer() in hideNotify() method of canvas. Probably gameCanvas of your application.

You can restart the music in showNotify() of your gameCanvas.

Upvotes: 2

Gorkem Ercan
Gorkem Ercan

Reputation: 3226

Canvas.hideNotify() is called when the midlet goes to background see this article as well

Upvotes: 1

Related Questions