Service

19 May 2023 . android .


Types of Service

  • Foreground Service
    • Service that notify users its ongoing operations and users can interact with it.
    • e.g. Download a file, user can pause and resume.
  • Background Service
    • Service don’t require user intervention and users can’t access them.
    • e.g. Store of data.
  • Bound Service
    • Allow components of the application to bound themselves with it.
    • Perform tasks as long as any application components is bound to it.
    • More than one component is allowed to bind themselves.