Cancelling background task when returning to foreground
<p>using sdk 4.2. I have an issue if my app is exited ( sent to background) and then immediately if user restarts it. I noticed the background task thread is still running.
This then upsets any initialising i am doing on the return to foreground thread.</p>

<p>How should i deal with this, is there any way to cancel the background task thread completely when returning to the foreground.</p>

<p>Thanks</p>
