Chapter 10. Multitasking

Phones are different. That’s the essential point of this chapter. On these small devices, which we like to think of as small computers, doing too much at one time can hurt the end-user experience. This is why running multiple applications simultaneously is discouraged—in fact, it’s disallowed. As you’ve seen in previous chapters, your application must be able to switch between activated, deactivated, and dormant phases. But what if you need to run tasks in the background? What if you are checking the server for data, downloading files, or performing other tasks that should be done periodically? How can you do that? This chapter will help you figure out how you can accomplish these tasks.

Multitasking

Back in Windows Mobile ...

Get Essential Windows Phone 8, Second Edition 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.