原文: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