why “onPause” is not called in following situation?

后端 未结 5 1014

By the document, \"onPause\" is called, when:

when the system is about to start resuming a previous activity.

Compared to \"onSt

5条回答
  •  抹茶落季
    2021-01-13 03:38

    In a lot of modern phones, the recent apps list is an activity, and does trigger onPause. I've tested this on a couple of Samsung and LG phones, and the packages are com.android.systemui and com.lge.launcher2 respectively.

    That said, it seems like you can't rely on recieving an onPause when you open the recent applications screen. I'm curious to see how many device don't give you the onPause...

提交回复
热议问题