Exploring Packages, Processes, Threads, and Handlers
In the book thus far, we have focused on the essentials of how to program for the Android platform. In this chapter we want to go under the hood a bit to address the process and threading model for Android programs. This discussion will lead us to signing packages, sharing data between packages, using compile-time libraries, the nature of Android components and how they use threads, and finally the need for handlers and how one can code handlers.
As you go through this chapter, keep in mind that the word “package” is overloaded. Sometimes it refers to the Java language package, and sometimes it refers to the APK files that Android applications are deployed as.
Understanding Packages ...