I have developed a windows phone application and it works fine when it is open and running actively.
It tracks the user movements on the map and shows the position moves with push pins.

Now I want to ensure that the same application runs even the phone is locked when this app was open.
I have added the below code for it to work under lock screen. After this when I verified the app I realized it is not running when the application is locked.

Is there any other change I need to make to get this work under lock screen.Any help would be greatly appreciated.

```
private void initiliazesettings()
{
    PhoneApplicationService.Current.UserIdleDetectionMode = 
       IdleDetectionMode.Disabled;
}

```