Reputation: 2167
I have a main activity class A and a service class S in the same package, I started S when I start A. My question is: Is the run-time memory of S counted as part of A? If I force stop A, do I stop S as well? Thanks
Upvotes: 1
Views: 1639
Reputation: 593
My expirience is that S does in fact stop in such a case. But if you start S as a seperate Activity, ie. let it extend Activity (or subclass of such), then I don't know.
But yes, maybe the answer is in here.
Upvotes: 0
Reputation: 43108
See here.
By default, all components of the application are executed in the same thread, but yo ucan change this behavior using android:process
attribute in the manifest file.
Upvotes: 2