Activity calling finish in onPause crashes during orientation change
问题 To preserve resources and prevent memory leaks, I am calling finish() in onPause event whenever app is going from one activity to another. I think it works fine, but when i try to rotate screen, app is crashing - error is "Duplicate finish request" How I can prevent this, is there way in onPause event to detect if app is going to the next activity or just changing orientation? Is there better method for preserving memory then using finish? Thanks for help! 回答1: Just a shot in the dark here,