A few days back I was asked to write down scenarios where ondestroy() is called without onpause() or onstop() being called. Is it possible. If yes please explain.
This is possible when we call finish() directly in an activity.
When finish() is called in an activity, onDestroy() is executed and it does following things: