https://urlandroidblog.blogspot.com/2023/09/android-asynctasks-how-to-check-if.html
Android Asynctasks How To Check If Activity Is Still Running