Saving game state when phone call interrupts game

I have just realised if I receive a call when playing my game on the iPhone (4), that the game restarts.

I therefore wondered if other developers add any code to deal with this scenario or just accept the fact the game is lost if a phone call is received and answered?

Any advice appreciated.

Thanks

Paul [import]uid: 7863 topic_id: 4921 reply_id: 304921[/import]

Add a listener to handle the applicationSuspend event.

References:
http://developer.anscamobile.com/content/application-programming-guide-event-handling
http://developer.anscamobile.com/reference/index/eventtype-0 [import]uid: 7026 topic_id: 4921 reply_id: 15916[/import]

Thanks radamanthus - that is very helpful. Guess most games save the game state and resume after a phone call?

[import]uid: 7863 topic_id: 4921 reply_id: 15981[/import]