7 messages in com.googlegroups.android-developersRe: Best way to end your application?
FromSent OnAttachments
conlan27 Feb 2008 11:54 
conlan27 Feb 2008 12:13 
hackbod27 Feb 2008 14:21 
conlan27 Feb 2008 16:09 
jtaylor27 Feb 2008 20:28 
hackbod28 Feb 2008 00:51 
conlan28 Feb 2008 10:59 
Subject:Re: Best way to end your application?
From:jtaylor (juan@gmail.com)
Date:02/27/2008 08:28:24 PM
List:com.googlegroups.android-developers

Try setting the fields to null programmatically with maybe Activity.isFinishing(). Outside of that there shouldn't be any problem with it being in the background.

- Juan

On Feb 27, 3:13 pm, conlan <con@gmail.com> wrote:

I ask this because when I call finish on my application, it appears that static fields that should default to null for some of my classes appear to retain their old values. I need a clean way to end the app completely :)

On Feb 27, 11:54 am, conlan <con@gmail.com> wrote:

What's the most suggested way on ending your application?

If I have, say only one activity running and I call finish() on it. Is that enough? Will that release all my app's resources and close it? Or is there something else I need to call?