I'm trying to get cookie from server response (from Headers).
I built library from source : https://github.com/loopj/android-async-http and add it to my project. Here i try to override metod
client.post(context, link, requestEntity, contentType, new AsyncHttpResponseHandler() {
@Override
public void onSuccess(int statusCode, Header[] headers, String content) {
Log.d("headers", String.valueOf(headers));
onSuccess(statusCode, content);
}
});
but get error :
The method onSuccess(int, PreferenceActivity.Header[], String) of type new AsyncHttpResponseHandler(){} must override or implement a supertype method
How I can override this metod or get Headers?
PreferenceActivity.Header[]does not look like a type forAsyncHttpResponseHandler.