Android如何保證一個線程最多隻能有一個Looper?

1. 如何建立Looper? Looper的構造方法爲private,因此不能直接使用其構造方法建立。java private Looper(boolean quitAllowed) { mQueue = new MessageQueue(quitAllowed); mThread = Thread.currentThread(); } 要想在當前線程建立Looper,需使用Loo
相關文章
相關標籤/搜索