Android 异步http请求后需要操作UI界面,初始化
protected AsyncHttpResponseHandler(){
if (null != Looper.myLooper()){
this.handler = new MyHandler(AsyncHttpResponseHandler.this);
}
}
null != Looper.myLooper()成立的一种情况是该异步请求放在了非UI线程中调用,此时无法收到请求回调
Android 异步http请求后需要操作UI界面,初始化
protected AsyncHttpResponseHandler(){
if (null != Looper.myLooper()){
this.handler = new MyHandler(AsyncHttpResponseHandler.this);
}
}
null != Looper.myLooper()成立的一种情况是该异步请求放在了非UI线程中调用,此时无法收到请求回调