There is a simple solution to the code posting problem in blogger.
check it out!
private void Application_Launching(object sender, LaunchingEventArgs e)
{
_originalMode =PhoneApplicationService.Current.UserIdleDetectionMode;
PhoneApplicationService.Current.UserIdleDetectionMode= IdleDetectionMode.Disabled;
}
private void Application_Activated(object sender, ActivatedEventArgs e)
{
_originalMode = PhoneApplicationService.Current.UserIdleDetectionMode;
PhoneApplicationService.Current.UserIdleDetectionMode= IdleDetectionMode.Disabled;
}
private void Application_Deactivated(object sender, DeactivatedEventArgs e)
{
PhoneApplicationService.Current.UserIdleDetectionMode = _originalMode ;
}
private void Application_Closing(object sender, ClosingEventArgs e)
{
Microsoft.Phone.Shell.PhoneApplicationService.Current.UserIdleDetectionMode = _originalMode ;
}