List of all of the activities in our application that are running on the device

后端 未结 2 624
忘了有多久
忘了有多久 2020-12-30 04:50

How to get the list of all activities in our application that are running on the device.

For example: pdf generation and email activities included.

I can che

2条回答
  •  心在旅途
    2020-12-30 05:42

    I've found AppLifecycleHandler as documented in this post to be a great solution for knowing what's happening. I use it primarily to just keep count and clean up when the user is done using the app, but you can implement it with an array in which you store all running activities so you can always call in to find out what's running.

提交回复
热议问题