Checking if an Android application is running in the background

前端 未结 30 3397
无人共我
无人共我 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:13

    Since it isn't already mentioned, I will suggest the readers to explore ProcessLifecycleOwner available through Android Architecture components

提交回复
热议问题