I always create two handler: one is wraping on main thread, another is wraping on a single thread.
Is this a best method to start and stop these in an Activity lifec
You can use this as a safe way to stop threads:
if (safeThread!= null) { safeThread.quit(); safeThread = null; // Object is no more required. }
You can use safeThread.quitsafely as well.
safeThread.quitsafely