Pausing a game when phone rings
I'm currently designing a game for the Nokia 3510i.
As it happens that someone calls you when you're playing, I would like the game to enter paused state when the phone rings.
That's why I'm using a "paused" boolean that's set to "true" when MIDlet.pauseApp() is called.
I thought that MIDlet.pauseApp() was automatically called by the system when the phone ringed but it doesn't seem so, and my game keeps running even during conversation.
Do you have any solution to this problem?
Is there any document that explains phone's behaviour in such situations.
When is MIDlet.pauseApp() actually called?
Thanks for your help!
pauseApp() is buggy on Nokia devices.
Use yourGameCanvas.hideNotify() and yourGameCanvas.showNotify() instead.
This que has been recently asked and lot of ans are there for the same please check past 100 posts and you'll get it.
Hope this may help
Thank you for your help
I had checked the others posts before posting mine without finding any answer.
It seems that I had not entered the right keywords!
hideNotify() and pauseApp().
There are lots of bugs on different nokias where these events are not called correctly or at all on some models.
This may help you.