Using non-static inner classes for long running operations is always a bad practice, not just in Android.
WeakReference in Android
Said Tahsin Dane

Not just for long running operations. I would say that using non-static inner classes whose objects have a lifecycle that’s different from the outer object is bad practice.

Like what you read? Give Anton Spaans a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.