Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Following is a quote from <a href="http://developer.android.com/reference/android/app/Service.html" rel="nofollow">Android Developer's web site</a>.</p> <blockquote> <p>Note that services, like other application objects, run in the main thread of their hosting process. This means that, if your service is going to do any CPU intensive (such as MP3 playback) or blocking (such as networking) operations, it should spawn its own thread in which to do that work.</p> </blockquote> <p>Jake points out that you can, thru manifest, control the <em>Name</em> of the process it is running. But following findings from Documentatioin:</p> <blockquote> <p>Most confusion about the Service class actually revolves around what it is not:</p> <ul> <li>A Service is not a separate process. The Service object itself does not imply it is running in its own process; unless otherwise specified, it runs in the same process as the application it is part of.</li> </ul> </blockquote> <p>This is interesting, what is said <a href="http://developer.android.com/guide/topics/manifest/service-element.html" rel="nofollow">Here</a> is:</p> <blockquote> <p>The name of the process where the service is to run. Normally, all components of an application run in the default process created for the application. It has the same name as the application package. The element's process attribute can set a different default for all components. But component can override the default with its own process attribute, allowing you to spread your application across multiple processes. </p> </blockquote> <p>But anyway, if you need Service to be exposed to other applications, for example, you need to provide content (like phonebook) to other applications, setting service to run in different process is the reason.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload