October 2010
Intermediate to advanced
400 pages
8h 3m
English
This chapter continues the introduction of the basic building blocks of an application. First, the explicit specification of threads is introduced as a method to separate tasks. Then, services and broadcast receivers are introduced. These can also benefit from threads, as shown in some recipes. The application widget, which utilizes receivers, is then covered. This leads naturally to the discussion of various alerts available to the developer.
Every application by default runs a single process upon creation that contains all the tasks. To avoid hanging the user interface, time-consuming tasks, such as network downloads or computationally intensive calculations, should reside in a separate ...
Read now
Unlock full access