I am trying to use the android-async-http library http://loopj.com/android-async-http/
It suggests to use this code:
public void getPublicTimeline() throws JSONException {
TwitterRestClient.get("statuses/public_timeline.json", null, new JsonHttpResponseHandler() {
@Override
public void onSuccess(JSONArray timeline) {
// Pull out the first event on the public timeline
JSONObject firstEvent = timeline.get(0);
String tweetText = firstEvent.getString("text");
// Do something with the response
System.out.println(tweetText);
}
});
}
}
But now my issue is that I need to get the response object and I also need to get hold of the http header .
How can I get the http header ?