How to find out that the activity is completed?

I want to check if the work is working or is it completed. Is there any way I can check the status of an activity?

I found activity.isFinishing() , but I'm not sure about that.

+7
source share
1 answer

If you want to take any step before the Activity becomes invisible.

There are several options here.

onDestroy () - for final cleaning.

isFinishing () - immediately after calling act.finish() it will return true.

onStop () - when Activity killed by the framework process. (not destroyed)

onPause () - when an Activity covered by any other Activity

onBackPressed () - capture of the hardware key Back event caused by the user.

+11
source

All Articles