Android scenario where ondestroy() is called without onpause() or onstop()

前端 未结 4 1209
误落风尘
误落风尘 2021-02-04 00:10

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.

4条回答
  •  清酒与你
    2021-02-04 00:38

    This happens when we call finish method to activity Example: inside your activity call this.finish();

提交回复
热议问题