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 ...

Get Windows Runtime via C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.