Explains the lifecycle of an AsyncTask when the activity is in OnPause state or when the activity gets destroyed or when the application gets destroyed. Uses Weak reference of the host Activity to avoid memory leak issues in case the user destroys the host activity but the async task is still functioning.
android-application asynchronous-programming asynctask lifecycle weakreference memoryleaks strongreference
-
Updated
Aug 17, 2020 - Java