onApplicationForeground

The on method collects data when the PhoneApplicationService.Activated event is raised.