I'm using the Looper attached to an Android HandlerThread to perform long-running asynchronous tasks:
HandlerThread handlerThread = new HandlerThread("handler-thread");
handlerThread.start()
Handler myHandler = new Handler(callbacks, handlerThread.getLooper());
// Ready to handle messages in callbacks
When I'm done with the worker thread, I call handlerThread.getLooper().quit()
to stop its Looper. Does the HandlerThread instance terminate (exit, die) after its Looper is quit(), assuming that that thread is performing no other execution?