I have a problem in understanding the following methods...I have two works to done. identify when user play home button and second is to identify when application was interrupted by phone call.
- (void)applicationWillResignActive:(UIApplication *)application ;
- (void)applicationDidEnterBackground:(UIApplication *)application;