Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User ykhun's Avatar
    Join Date
    Nov 2004
    Posts
    15
    Hi everyone,

    How do we detect a pause event (e.g. incoming call) in a midlet?

    I used the emulator's to make the phone pause with an incoming call. My midlet's display is frozen while the incoming call msg is shown, but underneath, it is actually still executing. I know that bcos when i come out of the pause event, my midlet's computation was not at the point when the pause event started.

    Hopefully detecting this kind of event is the same for all handsets. Thanks!!

  2. #2
    Registered User ykhun's Avatar
    Join Date
    Nov 2004
    Posts
    15
    I just found out the all that needs to be done is overwrite the hideNotify() in the Canvas base class. Hopes this helps some other newbies like me. Thanks!

  3. #3
    Registered User arunjadhav_v's Avatar
    Join Date
    Mar 2003
    Posts
    36
    It is taken care by Application management software of the phone. As such explicitly nothing is there to be done..

  4. #4
    Regular Contributor dmford's Avatar
    Join Date
    Mar 2003
    Posts
    87
    You can use showNotify() and hideNotify() to detect when a display loses and gains focus on the screen.

    A further note for Newbies, pauseApp() is not supported on Nokia phones.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved