~/talk

Async Task, Threads, Pools and Executors

Talkat 360|AnDev 2016 · 2016-07-28..07-29· [android]
slides:none on file

Names four core thread types: thread handler async task and handler thread and shows when each actually makes sense. AsyncTask stays tied to an activity and breaks for long camera or blocking work; HandlerThread keeps a looper for continuous jobs like messaging; Executors reduce manual spawning and the recommended option is a thread pool executor with explicit shutdown. Demonstrated socket code with a timeout to avoid hung ports, compared Glide/Picasso and RxJava for real implementations and trade offs.

AI-written summary · about

  1. 0:00Introduction
  2. 5:56Handler
  3. 7:56Async Task
  4. 9:42Handler Thread
  5. 13:38Lambda Expressions
  6. 14:40Selfmanaged tasks
  7. 18:06Executors
  8. 20:38Thread Pool Executor
  9. 23:50Futures Executor
  10. 24:41Thread Management
  11. 27:58Other Examples
  12. 29:49Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.