How to determine if a thread from the previous session is currently running

23
March 20, 2019, at 00:20 AM

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.

READ ALSO
Add, Use and Remove Payment Methods through Lyft API

Add, Use and Remove Payment Methods through Lyft API

We would like the ability to insert new payment methods, update existing methods, use specific payment methods and delete payment methods (or make inactive) payment methods via the Lyft API

47
Running tests on remote adb server

Running tests on remote adb server

Trying to run gradle tests on remote adb server

15
How do I add a drawable-xhdpi asset to an android project build from Unity?

How do I add a drawable-xhdpi asset to an android project build from Unity?

I inherited a project from another developerIt is a Google cardboard/daydream project using GoogleVR

35
React Native Bidirectional Looping FlatList

React Native Bidirectional Looping FlatList

I am trying to create a sidebar component that is almost carousel like in its behaviorThis will have fixed data with a maximum of 10 items

19