×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    17

    Pausing a game when phone rings

    Hello.
    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!

  2. #2
    Regular Contributor
    Join Date
    Jun 2003
    Location
    Hungary
    Posts
    414
    pauseApp() is buggy on Nokia devices.
    Use yourGameCanvas.hideNotify() and yourGameCanvas.showNotify() instead.

  3. #3
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Bangalore
    Posts
    117
    Hi,

    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

    Regards
    Chandu

  4. #4
    Registered User
    Join Date
    May 2003
    Posts
    17
    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!
    :-)

  5. #5
    Regular Contributor
    Join Date
    Aug 2003
    Posts
    121

    Look for...

    hideNotify() and pauseApp().

    There are lots of bugs on different nokias where these events are not called correctly or at all on some models.

  6. #6
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Bangalore
    Posts
    117
    Hi,

    This may help you.

    http://discussion.forum.nokia.com/forum/showthread.php?s=&threadid=29995


    Regards
    Chandu

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •