I have a program which automatically launches a phone call when program is started. This is implemented in AppDelegate's "applicationDidFinishLaunching"-method.
Problem is: When phone call ends and my app automatically launches again, it restarts that loop and phone call is started again.
How to recognize if app was returned from that call? Or somehow easily save the state or variables of the program that define if the call was already made?
I just started iPhone programming and this came up.