O'Reilly logo

Windows Phone 8 Application Development Essentials by Tomasz Szostak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Background agents

Modern applications are very interactive since they collect data and load content with no user attention. Windows Phone applications that use background agent are able to execute code even if they are not running in the foreground.

An application can implement only one background agent, which could be one of two types:

  • PeriodicTask: This is used to specify tasks that run typically every 30 minutes and could be 25 seconds long. There is a periodic task limitation in the system for a maximum of six periodic agents per device. If our phone reaches this limit, adding a new task to the schedule causes InvalidOperationException to be thrown. It is usually used to get some updates, achieve synchronization, or calculate some data.
  • Resource-intensive ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required