Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save codenameone/08f8de7590674e47683b to your computer and use it in GitHub Desktop.
Save codenameone/08f8de7590674e47683b to your computer and use it in GitHub Desktop.
Sample of the Codename One ConnectionRequest with a listener
ConnectionRequest request = new ConnectionRequest(url, false);
request.addResponseListener((e) -> {
// process the response
});
// request will be handled asynchronously
NetworkManager.getInstance().addToQueue(request);
@codenameone
Copy link
Author

Sample usage of ConnectionRequest.

From the Codename One project

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