handling iPhone Events in App

Discussion in 'iPhone/iPad Programming' started by sujithkrishnan, Sep 1, 2008.

  1. macrumors 6502

    Joined:
    May 9, 2008
    Location:
    Bangalore
    #1
    Hi all


    I am testing my iPhone App in iPod Touch... So i cant simulate teh incoming call features..

    So is ther any way to handle incoming calls (save state of app)...

    I want my app to SUSPEND on receiving incoming-call....

    What the behavior of Apps (App-Store, or any iPhone app) when an incoming call comes????

    plz help !!!!
     
  2. macrumors 6502

    Joined:
    Sep 17, 2003
    #2
    Use applicationWillTerminate to save your current state and on startup read that state back in.
     
  3. thread starter macrumors 6502

    Joined:
    May 9, 2008
    Location:
    Bangalore
    #3
    But how to identify abrupt termination or normal termination...

    The above method get fired... for both kind of termination...

    even how the app-Store and other apps behave in iPhone???
    (I want an answer from iPhone users..)

    Also i want to make use of a stack to maintain the flow. right??
    So there is nothing to do with notification using CoreTelephony F/w ???

    Any help is appreciated...
     

Share This Page