My app launches an AsyncTask thread that retrieves some information from a website. When the user exits the app while the thread is still running, the thread continues to run. When the user starts up the app, I wan't to be able to detect if that thread is still running. I am currently just using a variable to store the state of the system but this is unreliable.
This is the logcat for the thread:
03-19 08:08:31.209 18998-20719/com.hssw.hssw_petmatch I/*~FETCH DATA: doInBackground: start:
Can I get a list of threads running such that it identifies the above thread?
I have already tried this:
How to get all the tasks that are running currently
But it does not list it.