Created
March 2, 2016 09:57
-
-
Save codenameone/bf1d90a391a6ffda8695 to your computer and use it in GitHub Desktop.
Sample of the NetworkManager's addToQueueAndWait API from Codename One
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 will be handled synchronously | |
NetworkManager.getInstance().addToQueueAndWait(request); | |
byte[] resultOfRequest = request.getData(); |
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