不推荐使用AsyncHttpClient的Android方法onSuccess()。有替代方案吗?

时间:2015-03-19 05:05:16

标签: android deprecated asynchttpclient

@Override    
public void onSuccess(String response) {
    progressDialog.hide();
    Toast.makeText(getApplicationContext(), response, Toast.LENGTH_LONG).show();
}

1 个答案:

答案 0 :(得分:0)

只需将库更新到1.4.9

compile 'com.loopj.android:android-async-http:1.4.9'

@Override
public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {
//code here 
}