Skip to Main Content
Professional iPhone® and iPad™ Application Development
book

Professional iPhone® and iPad™ Application Development

by Gene Backlin
November 2010
Intermediate to advanced content levelIntermediate to advanced
600 pages
14h 21m
English
Wrox
Content preview from Professional iPhone® and iPad™ Application Development

Chapter 15. Multitasking

WHAT'S IN THIS CHAPTER?

  • How to set up an AVAudioSession for background operation

  • How to modify your Xcode project to enable background audio processing

  • Enabling remote events when the application is running in the background

Multitasking is a major feature of iOS 4. It not only adds the capabilities of newly developed applications, it enhances the operation of existing applications by enabling them to remain idle in the background, rather than terminate. This enhances the user experience, as the application's launch time and previous state are automatically preserved. It does not mean that all applications are running all the time.

In pre-iOS 4, an application would launch, perform its tasks, and then terminate, ultimately left in a nonrunning state. With iOS 4, an additional background state enables an application to be suspended until it is called upon to run again.

Of course, when a multitasking application is in the background, it should consume minimal resources, which are needed by other active applications. Therefore, system resources should always be considered as you develop your applications.

This chapter demonstrates how to write an audio application that will run in background, where it can still be controlled remotely.

MULTITASKING SERVICES

Apple's iOS 4 multitasking features include the following:

  • Fast app switching

  • Push and Local notifications

  • Background audio

  • Location tracking

  • Voice over IP

The fast app switching is provided by default, but the audio, location, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Professional Visual Studio® 2010

Professional Visual Studio® 2010

Nick Randolph, David Gardner, Michael Minutillo, Chris Anderson
Navigating the Metaverse

Navigating the Metaverse

Cathy Hackl, Dirk Lueth, Tommaso Di Bartolo, John Arkontaky, Yat Siu
Navigating the Metaverse

Navigating the Metaverse

Cathy Hackl, Dirk Lueth, Tommaso Di Bartolo

Publisher Resources

ISBN: 9780470878194Purchase book