原文:Synchronous ResponseHandler used in AsyncHttpClient. You should create your response handler in a looper thread or use SyncHttpClient instead.

可能原因:在新啟動的線程內調com.loopj.android.http.AsyncHttpClient 低級錯誤 解決方案:直接用com.loopj.android.http.AsyncHttpClient就可以 ,不要再 new Thead內部調com.loopj.android.http.AsyncHttpClient ...

2014-08-30 09:14 1 3349 推薦指數:

查看詳情

Can't create handler inside thread that has not called Looper.prepare()

最近做項目時出現個問題。 在一個基類中,創建一個Handler對象用於主線程向子線程發送數據,代碼如下 但不知道為啥一直報錯:Can't create handler inside thread that has not called Looper.prepare()。 搜索后 ...

Mon Jan 14 00:10:00 CST 2013 3 133790
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM