O'Reilly logo

Windows Runtime via C# by Jeffrey Richter and Maarten van de Bospoort

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

Chapter 9. Background tasks

In Chapter 3 I explained how Windows Store apps have their threads suspended when not in the foreground. This prevents background apps from consuming battery power. In addition, it prevents apps the user is not interacting with from affecting the responsiveness of the foreground app. Windows provides Windows Store apps that have tremendously powerful features to stay current and provide the latest relevant information to users. We saw good examples in Chapter 8 when we examined how the system can update your tile or show a toast notification even when your app is suspended or terminated. In addition, in Chapter 7 I showed how your app could transfer large files even when in the background.

However, some apps need to ...

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