© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
J. StevensonAndroid Software Internals Quick Referencehttps://doi.org/10.1007/978-1-4842-6914-5_9

9. Services, Launchers, and Components

James Stevenson1  
(1)
London, UK
 

Long-Running Services

In Android there are several ways that “jobs” can be tasked for a one-off or periodic running after the current activity closes. The techniques discussed here will vary between being the two following types:
  • Strongly bound to the current activity, such as AsyncTask , meaning that if the activity finishes, then the task is garbage collected.

  • Not strongly bound to the current activity, such as JobScheduler, where the task continues even after the parent activity itself is ...

Get Android Software Internals Quick Reference: A Field Manual and Security Reference Guide to Java-based Android Components 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.