Windows 8 Background Processing and Lifecycle Management

Creating background tasks and handling state management in Windows 8 Store apps
Course info
Rating
(32)
Level
Intermediate
Updated
Dec 18, 2012
Duration
3h 25m
Table of contents
Course overview
The Windows 8 Process Lifecycle and State Management
Performing work in the background in Windows 8
Lock screen apps
Uploading and downloading files in the background
Playing audio in the background
Description
Course info
Rating
(32)
Level
Intermediate
Updated
Dec 18, 2012
Duration
3h 25m
Description

This course explores the new way Windows 8 Store apps execute on a system, and the new challenges faced by developers. Topics covered include managing the state of the application and an exploration of the different types of background processing that are possible in Windows 8, including a look at how to perform downloads in the background, and how to create applications that are capable of playing audio while they're not in the foreground.

About the author
About the author

Gill Cleeren is a solution architect, author, and trainer in mobile and web technologies. He's also a Microsoft Regional Director and MVP. He lives in Tienen, Belgium.

More from the author
GitHub Fundamentals
Beginner
4h 16m
Sep 24, 2018
Xamarin: The Big Picture
Beginner
2h 15m
Mar 28, 2018
More courses by Gill Cleeren
Section Introduction Transcripts
Section Introduction Transcripts

Lock screen apps
Hi, my name is Gill Cleeren and welcome to Module 3 of this Pluralsight course on Background Processing and State Management in Windows 8. This module is all about creating lock screen apps. The name gives away what they really are. Lock screen apps are apps that can have background task that run even when the system is on the lock screen. In this module, we are going to start by looking at what exactly lock screen apps are and what gap they are filling in the Windows 8 background processing universe. We'll talk about how your application can become a lock screen app and what extra it can do once it has been, well let's say, promoted to be on the lock screen. It's also possible to use WNS right on the lock screen so that the application can receive raw messages which are just plain text messages that will be delivered to the app even when it's running. This will in turn trigger a background's task to execute. Next, we will look at the ability to use network triggers which basically comes down to having an open connection to a service to allow incoming connections. Finally, we will look at the time trigger, a very simple type of trigger that can be fired based on a time interval. For this trigger to work, however, we also need to be on the lock screen. ( Pause )

Uploading and downloading files in the background
Hi, my name is Gill Cleeren. Welcome to module 4 of this Pluralsight course on background processing and process lifecycle management in Windows 8. In this module we are going to discuss background transfers which offer us a way to download and upload files using a separate process instead of performing the transfer directly from within the application. In this module I'd like to discuss the following content with you. Now since this is a chapter about background transfers it's probably a good idea to start by looking at the background transfers API that comes with Windows 8. I'm going to explain you where the problem is coming from and how the API is going to solve it for us. Next we will use the API to see how we can download files. The API also supports that we cancel the download taking place in the background and it also supports rebooting progress back to the main application. We'll cover these two topics as well in this module. After that we will look at the code we need to write to counter the effects of termination and suspension in the ongoing downloads and we'll finish out the module by looking at how we can upload one or multiple files.

Playing audio in the background
Gill Cleeren: Hi, my name is Gill Cleeren, and welcome to module five of this Pluralsight course on background processing, and process life cycle management in business 8. So far in this course we have seen a number of solutions to allow applications to run code while they're not in the foreground. There is one scenario, however, that we haven't used, and that would be audio. That will be the focus of this final module. We're going to start this module by discussing how an application can become background audio enabled. We'll see that a number of changes are enough to allow an application to continue playing while it's no longer in the foreground. After that, we'll extend the demo from our first discussion so that the application will also handle in coming sound level modifications correctly. Let's get started.