ApplicationForeground

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