Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created March 2, 2016 09:57
Show Gist options
  • Select an option

  • Save codenameone/bf1d90a391a6ffda8695 to your computer and use it in GitHub Desktop.

Select an option

Save codenameone/bf1d90a391a6ffda8695 to your computer and use it in GitHub Desktop.
Sample of the NetworkManager's addToQueueAndWait API from Codename One
ConnectionRequest request = new ConnectionRequest(url, false);
// request will be handled synchronously
NetworkManager.getInstance().addToQueueAndWait(request);
byte[] resultOfRequest = request.getData();
@codenameone

Copy link
Copy Markdown
Author

Sample usage of ConnectionRequest & NetworkManager.

From the Codename One project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment