Re: [android-developers] onStop() coming with delay

2012-02-23 Thread Mark Murphy
On Wed, Feb 22, 2012 at 9:03 PM, Pavel Dudka wrote: > It looks correct, but onStop->onDestroy is coming with delay (~2sec) > which is not what I expect. There is no guarantee on how quickly onDestroy() will be called after onStop(). It could be milliseconds. It could be hours (e.g., user presses

[android-developers] onStop() coming with delay

2012-02-23 Thread Pavel Dudka
I have a problem in one of my apps. I have 2 activities (2 different apps) - 1st is in foreground, and 2nd is in background. When I press back button - it finishes 1st activity and puts 2nd to the foreground. For the first activity onPause()->onStop()->onDestroy is called. It looks correct, but o