Android-async-http ライブラリhttp://loopj.com/android-async-http/を使用しようとしています
このコードを使用することをお勧めします:
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);
}
});
}
}
しかし、今私の問題は、応答オブジェクトを取得する必要があり、http ヘッダーも取得する必要があることです。
http ヘッダーを取得するにはどうすればよいですか?