Last active
February 22, 2022 12:50
-
-
Save ssinss/5387661 to your computer and use it in GitHub Desktop.
loopj async http 오버라이딩폼
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AsyncHttpClient client = new AsyncHttpClient(); | |
client.get("http://www.google.com", new JsonHttpResponseHandler() { | |
@Override | |
public void onStart() { | |
// Initiated the request | |
} | |
@Override | |
public void onSuccess(JSONObject o) { | |
// 또는 JSONArray a | |
} | |
@Override | |
public void onFailure(Throwable e, JSONObject o) { | |
// Response failed :( | |
} | |
@Override | |
public void onFinish() { | |
// Completed the request (either success or failure) | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment