Created
March 2, 2016 10:31
-
-
Save codenameone/9ec6fe3b79d95f15661d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
ConnectionRequest request = new ConnectionRequest(url, false); | |
request.setFailSilently(true); | |
NetworkManager.getInstance().addToQueueAndWait(request); | |
if(request.getResponseCode() != 200) { | |
// probably an error... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample usage of ConnectionRequest & NetworkManager.
From the Codename One project