I have an Activity, which starts a Thread to do some work. What happens if the user presses the Back button, or the UI thread calls finish() to the thread?
Will the activity wait for the thread to finish() before the activity is destroyed?
Does the thread complete its work after the activity gets destroyed?
Thread will do its work, but you can't use any callbacks to your activity.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With