Verify app close ANDROID
<p>I am conducting a background program that runs from x in x seconds to get new information. So far so good. The problem is that when I finish the application thread remains always active.</p>

<p>Is there any way to check if the application has ended?</p>

<p>thank you</p>
