Using HandlerThread and Handler on a separate thread freezes UI thread
问题 In my project, I want to implement a timer in another thread that counts down the time spent executing a certain method in my application, and do something if it is taking too much time. When executing the MyManager.startCommand() method, the application is freezing and I don't know why since I think I am not doing anything on the UI thread. Is there anything wrong with my code? I had originally asked this question and was not experiencing an app freeze, so I don't think it's because I'm