android:start

This is an old revision of the document!


Android Hacking Notes

A Service is an application component that can perform long-running operations in the background. It does not provide a user interface. There are 3 kind of service:

  1. Foreground Service. A foreground service performs some operation that is noticeable to the user.
  2. Background Service. A background service performs an operation that isn't directly noticed by the user.
  3. Bound Service. A bound service offers a client-server interface that allows components to interact with the service, send requests, receive results, and even do so across processes with interprocess communication (IPC).

By default, service will run on the main/UI thread if we don't explicitly specify the worker thread.

  • Although the term is “foreground”, it doesn't mean running in the main thread.

A bound service runs only as long as another application component is bound to it. Multiple components can bind to the service at once, but when all of them unbind, the service is destroyed.

  • android/start.1615570285.txt.gz
  • Last modified: 2021/03/13 00:31
  • by jmerari