Hello everyone,

I have a service that registers for boot completed event and when
started by the phone spawan a thread and creates several other
services. My question is, are the services created by the main service
running in the same process as the main service or separate processes.

When I run ps command on amulator shell, I see separate entries for
each of the services. But when I read the documentation on services I
see the follwoing lines:

"Note that a new thread is not created for each Activity,
BroadcastReceiver, Service, or ContentProvider instance: these
application components are instantiated in the desired process (all in
the same process unless otherwise specified), in the main thread of
that process"

So I am confused. Please help me understand

Thanks,
-Anshul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to