O'Reilly logo

Android Programming Concepts by Trish Cornez, Richard Cornez

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

6 Threads, Handlers, and Programmatic Movement

Chapter Objectives

In this chapter you will:

  Understand the benefits of multithreading on Android.

  Understand multithreading fundamentals.

  Know the Thread class and the Runnable interface.

  Understand an AsyncTask.

  Learn to implement canvas movement using surface views.

  Learn to communicate between threads.

  6.1 Multithreading and Multicore Processing

Since the early days of Cupcake, Android-powered devices have grown enormously in multitasking capability. Even fairly recent mobile devices have more resource constraints (such as CPU, memory, and battery power) than a desktop computer; this makes multitasking more difficult on a mobile device. Nevertheless, Android users have ...

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