I've got some legacy code I'm working on that is triggered in onStop()
method for my activity. When I put the app in the background using the home button, the onPause()
followed by the onStop()
methods are triggered in both non-lollipop and lollipop devices, and I get to clean up my activity. On non-lollipop devices when I receive a phone call, the onPause()
- onStop()
methods are called, and I get to clean-up my activity as expected. However, using lollipop, only the onPause()
method is called when the phone call is received and accepted.
Has anyone else seen this, and have a work-around to this situation? Thanks.