Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created March 2, 2016 10:28
Show Gist options
  • Save codenameone/a3bc133ad3d3ed11c150 to your computer and use it in GitHub Desktop.
Save codenameone/a3bc133ad3d3ed11c150 to your computer and use it in GitHub Desktop.
ConnectionRequest request = new ConnectionRequest(url, false) {
protected void handleErrorResponseCode(int code, String message) {
if(code == 444) {
// do something
}
}
protected void readResponse(InputStream input) {
// just read from the response input stream
}
};
NetworkManager.getInstance().addToQueue(request);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment