Do it Asynchronously but Intelligently!!!
Deepanshu
1K4

I would urge you to look into RxAndroid and google’s LiveData for doing asynchronous tasks. AsyncTask and HandlerThread were awkward in 2014 when your reference book was written and the community is moving on to reactive programming now.

References:
https://developer.android.com/topic/libraries/architecture/livedata
https://github.com/ReactiveX/RxAndroid