在Thread中使用AsyncHttpClient问题 threadAsyncHttpClient 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你不用线程试试,这个本来就封装了异步线程的吧 再说你的handler已经是在线程里new出来的 有问题。 报错内容是这样的,不太明白什么意思:09-19 14:16:34.765: E/AndroidRuntime(29517): java.lang.IllegalArgumentException: Synchronous ResponseHandler used in AsyncHttpClient. You should create your response handler in a looper thread or use SyncHttpClient instead. 同步的ResponseHandler用在了异步的http客户端上,你需要给你的线程创建一个looper或者使用SyncHttpClient。 怎么创建这个 response handler in a looper thread? 你在新起一个线程,在其中使用异步httpclient吧?解决办法:1不使用异步,使用同步的,即SyncHttpClient。2将new JsonHttpResponseHandler(){....}这个handler的定义在你新起的线程外。 使用geocoder解析坐标报unable to parse response from server 熟悉MTK 6575平台的请进来!!! 学习开发android需要的准备工作 Notification切换语言的bug是android平台bug吗? android客户端访问服务器端sql server怎么做阿 Android中触屏事件的响应过程 模拟乒乓球的状态 关于R文件,是什么时候将id加入R中的? Android按钮问题 新手想学Android,求推荐本书 android 界面切换默认模式更改 APP WIFI情况下总出现网络故障?
同步的ResponseHandler用在了异步的http客户端上,你需要给你的线程创建一个looper或者使用SyncHttpClient。