No components are run in separate processes unless you specify that they should in the manifest. All components are run in the main thread of the process they live in.
On Sep 24, 12:27 pm, Anshul <[EMAIL PROTECTED]> wrote: > 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 android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---