text.skipToContent text.skipToNavigation
  1. Home
  2. Computer Science & IT
  3. Android Concurrency

Android Concurrency, 1st edition

  • G Blake Meike

Published by Addison-Wesley Professional (June 20th 2016) - Copyright © 2016

1st edition

Chosen format
View all
Android Concurrency

ISBN-13: 9780134177434

Includes: Paperback
Free delivery
$39.99

What's included

  • Paperback

    You'll get a bound printed text.

Overview

  • Not a generic "concurrency" book: focused 100% on Android
  • By Blake Meike, one of the world's most respected Android developers
  • Covers powerful new SDK updates in the Android Lollipop 5 release
  • The first in our new Android Deep Dive series from Addison-Wesley: edited by Zigurd Mednieks, one of the world's leading Android development consultants

Table of contents

Preface     xiii
Chapter 1  Understanding Concurrency     1
Concurrency Made Hard     1
    Concurrency in Software     2
    Concurrency in Hardware     3
Concurrency Made Simple     4
    Threads     4
    Atomic Execution     5
    Visibility     6
Summary     7
Chapter 2  Java Concurrency     9
Java Threads     9
    The Thread Class     10
    Runnables     11
Synchronization     11
    Mutexes     12
    Common Synchronization Errors     15
Volatile     17
Wait and Notify     20
    Wait     20
    Notify     22
The Concurrency Package     23
    Safe Publication     23
    Executors     25
    Futures     26
Summary     27
Chapter 3  The Android Application Model     29
Lifecycles and Components     29
    Process Priority     31
    Component Lifecycles     33
Android Applications as Web Apps     35
The Android Process     36
    Application Startup     36
    The Android Main Thread     38
Summary     40
Chapter 4  Async Tasks and Loaders     41
Async Task Architecture     41
    Async Task Basics     45
    AsyncTask Execution     48
    AsyncTask Completion     50
Using AsyncTasks     52
    AsyncTask: Considered Dangerous     52
    Getting It Right     58
Loaders and Cursor Loaders     59
AsyncTasks: What Went Wrong     67
Summary     68
Chapter 5  Looper/Handler     69
Introducing the Looper/Handler     69
    Basic Looper/Handler     71
    Delegating Execution     73
Some Gory Details     81
    Handlers and Messages     81
    Starting a Looper     84
    The Native Looper     86
    Scheduling and the Sync-Barrier     87
Summary     88
Chapter 6  Services, Processes, and Binder IPC     91
Service Basics     92
    Started Service Essentials     93
    Bound Service Essentials     95
Intents     96
The Intent Service     99
Bound Services     103
    A Simple Bound Service     103
    Binding A Service     105
    Unbinding A Service     106
&n

For teachers

All the material you need to teach your courses.

Discover teaching material