Checking if an Android application is running in the background

前端 未结 30 2796
无人共我
无人共我 2020-11-21 06:19

By background, I mean none of the application\'s activities are currently visible to the user?

30条回答
  •  无人共我
    2020-11-21 07:14

    Activity gets paused when a Dialog comes above it so all the recommended solutions are half-solutions. You need to create hooks for dialogs as well.

提交回复
热议问题