Thursday, July 14, 2011

Re: [android-developers] Re: App behaves wired after the task is killed by a TaskKiller

onDestroy doesn't get called when the process is killed.

As for why the app is acting strange - how about debugging it?

Use Debug.waitForDebugger somewhere in your code to find out what your
code does after the restart as a new process.

-- Kostya

14.07.2011 18:25, Raghav Sood пишет:
> Save all your data in onDestroy() and read it in onCreate. That way
> your data will be saved when the app is destroyed and you can recover
> it in onCreate().

--
Kostya Vasilyev

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment