O'Reilly logo

Programming the Windows Runtime by Example: A Comprehensive Guide to WinRT with Examples in C# and XAML by John Garland, Jeremy Likness

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

15. Background Tasks

Windows Store apps often must perform a variety of tasks even when they are not running in the foreground. Your app may need to fetch data from a remote server, scan directories for changes or communicate with a web service to retrieve updates. Chapter 2, Windows Store Apps and WinRT Components, covers the application lifecycle and explains how apps are suspended and sometimes even terminated when they are not in the foreground. Chapter 10, Networking demonstrated a special background task that can run to download large files even when the app is suspended or terminated.

There are several more types of background tasks that your app can use. Some of these tasks can drive updates that display for the user on the lock screen, ...

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