On Tue, Sep 7, 2010 at 11:19 AM, Agus <[email protected]> wrote:
> If a Service is not running in the same process as the
> ApplicationContext, then the system will not try hard to keep the main
> process running (ApplicationContext) under low memory?

Each process has its own Application object. Unless you have really
really really good reasons for it, do not run your service in a
separate process, please.

There is no ApplicationContext class in Android.

> Does the Service's onDestroy get called prior to the
> ApplicationContext's onTerminate() method?

If something stops the service, yes. If Android kills the process, no.
Having services linger in memory for no good reason is a quick path to
one-star ratings on the Market, so hopefully you are promptly shutting
down your services.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://skillsmatter.com/go/os-mobile-server

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