Re: [android-developers] Re: finish() at onStop causes ANR

2010-08-01 Thread Dianne Hackborn
Again, get the stack crawls. This discussion is fairly pointless without at least having the stack crawls of the app when it ANRed. As for calling finish() in onStop() -- you can call finish() at any time. (Well, not after onDestroy().) And in fact it would be hard for doing this in onStop() to

[android-developers] Re: finish() at onStop causes ANR

2010-08-01 Thread Indicator Veritatis
It is true that the documentation does not specifically forbid calling finish() from onStop(). But then what documentation does document ALL the things you are not supposed to do? None that I know of. Still, I have to suspect that TreKing is right, even if the documentation does not clearly suppor

[android-developers] Re: finish() at onStop causes ANR

2010-07-31 Thread James Wang
@TreKing Thanks for your replies. We do have some reasons to call finish because Android did not finish one when another is shown before it. >Probably, but with your code, not Android. Document does not say finish is not allowed to be called at onStop. How to explain there is no problem with callin