私はこのようなコードを持っています:
public Dictionary<Object, Object> call(String method, Iterable args)
{
AsyncHttpClient client = new AsyncHttpClient();
client.get(getUrl(method, args), new AsyncHttpResponseHandler() {
@Override
public void onSuccess(String response)
{
Gson gson = new GsonBuilder().create();
}
});
}
(Dictionary<Object, Object>) gson.fromJson(response, Dictionary.class)
自分のcall
方法に戻れるようにしたいのですが、どうすればよいですか? http://loopj.com/android-async-http/を使用して、使いやすい非同期 HTTP リクエスト システムを作成します。
ありがとう !