After creating a public service class, there are two ways to use it, the first to put the public service into its own project so that the outside world cannot access and control the public service class, and all the variables and functions of the service run in its own project. This service can be repeatedly invoked directly through the Startintent (service).
The second is to configure the public service to the XML file of your project and set the process= ": Remotexxx" property, which will not be able to call this service directly through Startintent (service), which is also a privilege mechanism for Android. If you still want to call directly, you can take the form of a broadcast, similar to the architecture:
Caller-"Hub class-" broadcast "----------------" Broadcast (: REMOTEXXX)-"service (: remotexxx)
Android system mechanism analysis-public service