I read that before posting a question, but found inconsistent
terminology in the Android documentation confusing.  For example, the
Service documentation says things like: "It is still theoretically
possible for the service to be killed under extreme memory pressure
from the current foreground application, but in practice this should
not be a concern," which makes it seem like killing a service and
killing a process are often independent from each other.

But you've clarified that for me, so thanks!

On Dec 15, 8:31 pm, Dianne Hackborn <[email protected]> wrote:
> The decision to kill is at the process level, based on the most important
> thing running in the process:
>
> http://developer.android.com/guide/topics/fundamentals.html#proclife
>
>
>
>
>
> On Tue, Dec 15, 2009 at 5:15 PM, Carter <[email protected]> wrote:
> > *bump*
>
> > Again, the question is: if there are multiple services within a
> > process and at least one service is a "foreground" service, will that
> > keep the non-foreground services alive?
>
> > Thanks,
> > Carter
>
> > The documentation
>
> > On Nov 23, 10:40 pm, Carter <[email protected]> wrote:
> > > This is probably a question for Dianne:
>
> > > The Android 2.0 SDK introduces the startForeground() API which makes
> > > it much less likely that a background service (and therefore a given
> > > process) will be killed.
>
> > > Suppose there are two services within a process, and one of those
> > > services has called startForeground() while the other has not.  Will
> > > the one foreground service "protect" the other non-foreground service
> > > from being killed?
>
> > > I'm specifically looking at a case where there could be multiple
> > > services within a process, but coming from different APKs.  So these
> > > would be APKs signed with the same signature, and given the same
> > > sharedUserID and process in the Android Manifest.  I'd like to avoid
> > > having to post a notification for each individual service, as that
> > > would likely annoy users.
>
> > > Thanks!
> > > Carter
>
> > --
> > 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]<android-developers%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

-- 
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