ailinykh wrote:
> First at all singleton could be a member of the application. Then it
> will garbage collected with application.

Then it is not a singleton. It is a data member of Application.

> As far as I
> understand one process runs one application.

At a time, yes.

However, when all components of an Android application are destroyed,
the process is retained for a while in a pool, for reuse by another
application. This saves CPU time and battery life, by avoiding forking a
new process and setting up a new Dalvik VM.

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

_The Busy Coder's Guide to Android Development_ Version 3.0
Available!

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to