Checking if an Android application is running in the background

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

    I recommend reading through this page: http://developer.android.com/reference/android/app/Activity.html

    In short, your activity is no longer visible after onStop() has been called.

提交回复
热议问题