使用HandlerThread进行消息循环,在APP退出时,终止循环。问题:不知道APP什么时候退出,请问如何在APP退出时终止HandlerThread?
OnDestroy生命周期不行?
system.exit(0)杀死进程