Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sujithkrishnan

macrumors 6502
Original poster
May 9, 2008
265
0
Bangalore
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 !!!!
 

Pring

macrumors 6502
Sep 17, 2003
310
0
Use applicationWillTerminate to save your current state and on startup read that state back in.
 

sujithkrishnan

macrumors 6502
Original poster
May 9, 2008
265
0
Bangalore
Use applicationWillTerminate to save your current state and on startup read that state back in.

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...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.