receive notification when current task ends
<p>I'm writing an android app where I'd like to maintain the current location for the user while my app is open. I'm trying to figure out how to know when to stop listening for updates from my LocationManager, but can't seem to figure out a good way to know when the current task is paused.</p>

<p>Is there an easy way to say something like onTaskFinish() or onTaskPause()? </p>
