This lecture highlights the importance of not doing
time-consuming work on the UI thread, then considers a range
of techniques for moving work elsewhere. Specialised tools such
as WorkManager
and DownloadManager
, but
the lecture mainly focuses on services and threads, presenting
small examples of both. Techniques for communicating with the UI
thread from worker threads are considered. The lecture then
concludes with an example of the simpler syntax that the Anko library
provides for performing tasks asynchronously.