Android error系列03:Can't create handler inside thread that has not called Looper.prepare()

問題描述: 在子線程中new一個Handler,報以下錯誤: java.lang.RuntimeException:  Can't create handler inside thread that has not called Looper.prepare()  問題分析:        這是因爲Handler對象與其調用者同在子線程中。 1)安卓基礎知識儲備: 異步消息處理線程:異步消息處理線
相關文章
相關標籤/搜索