Activity life cycle: Why you should not do heavy functionality in onPause() of your activity?
because android may kill your activity at any point of time from then on
because user is eagerly waiting for next activity to show up
because it has time limit of 5 seconds
because it has time limit of 10 seconds
onPause() will be called as the first indication that user is moving away from your activity, that means intentionally user is moving to next screen, so more the time you hold control in onPause() more it will irritate user. so don't hold control here for too much of time.
Back To Top