1. 程式人生 > >android manifest.xml配置檔案中的 Service節點

android manifest.xml配置檔案中的 Service節點

The name of the process where the service is to run. Normally,all components of an application run in the default process created for theapplication. It has the same name as the application package. The element'sattribute can set a differentdefault for all components. But component can override the defaultwith its ownprocess
attribute, allowing you to spread yourapplication across multiple processes.

If the name assigned to this attribute begins with a colon (':'), a newprocess, private to the application, is created when it's needed andthe service runs in that process.If the process name begins with a lowercase character, the service will runin a global process of that name, provided that it has permission to do so.This allows components in different applications to share a process, reducingresource usage.