My app is composed of a single Activity. In this activity, I\'m creating multiple HandlerThreads which run in a loop to do socket blocking operations.<
Activity
HandlerThread
The best practices approach would be to remove the callbacks to your handlers in your activities onDestroy(). See this answer for more:
onDestroy()
https://stackoverflow.com/a/5038542/1369222