title: How to know activity has been finished?
body: <p>I want to check to see if an activity is running or finished. Is there any method through which I can check the status of activity?</p>
  
  <p>I found <code>activity.isFinishing()</code> but I am not sure about it.</p>