Summary
Starting from the basic definition of thread, through the Java threading framework, we got to talk about Android process management, thread types, and the messaging framework. We analyzed pitfalls in multithreading environments, defining thread safety. Indicating what we can do with multiple threads in an application, we described the primary goal for an Android developer from a multithreading performance point of view. The UI thread should just deal with the UI, and any other operation should be executed in the background using a worker thread. Because of this, we evaluated a lot of different solutions provided by the platform for various situations, defining when they can or shouldn't be used. Anyway, the choice of the right framework ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access