Hi,

Somewhat related and knowing that it is mostly frowned upon, I had
been resisting the temptation of suggesting use of -

android.os.Process.killProcess(android.os.Process.myPid());

- in this discussion, 'Application still Running After Exit' -

http://groups.google.com/group/android-developers/browse_thread/thread/4158df007f07c52c/dc45c835c9ccb6a8

- as I found most of the discussion about exit buttons and task
managers etc really annoying.

I will continue to resist this temptation ;-)

Regards


On Nov 1, 5:17 am, Dianne Hackborn <hack...@android.com> wrote:
> On Sun, Oct 31, 2010 at 11:12 AM, Mark Murphy <mmur...@commonsware.com>wrote:
>
> > On Sun, Oct 31, 2010 at 2:07 PM, Dianne Hackborn <hack...@android.com>
> > wrote:
> > > As far as using Application to clean up statics -- this simply doesn't
> > > really make sense, for the reasons above.  For a legacy application with
> > > statics that can't be re-used again in the same process, your only choice
> > is
> > > probably to just self-kill your process when the user leave the game.
> > Wait, what? I was under the distinct impression we should not be
> > killing processes this way.
>
> You should not be, but if you have a bunch of legacy code that can't cleanly
> work without doing so...  well, sometimes you need to compromise.  This does
> have other negative consequences, so nobody writing Android applications
> should do this.
>
> Games, though, games are sometimes so special.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to