3. The Android Application Model

... the Lord gave, and the Lord has taken away; blessed be the name of the Lord.

JOB 1:21

In the Android environment, the challenge of concurrent programming is compounded by the necessity of dealing with components whose lifecycles are out of the control of the application.

Lifecycles and Components

Android was designed at a time when mobile devices could not reasonably be expected to support paged memory. Whereas most laptops today sport solid-state hard drives, flash memory at the beginning of the century wore out after only approximately 10,000 writes. Using flash memory as swap-space for a general purpose virtual memory system was simply out of the question. In an environment that is limited to only physical ...

Get Android™ Concurrency 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.