Skip to content

Instantly share code, notes, and snippets.

@codenameone
Last active July 8, 2020 09:57
Show Gist options
  • Save codenameone/7aefb64909e75e10c396 to your computer and use it in GitHub Desktop.
Save codenameone/7aefb64909e75e10c396 to your computer and use it in GitHub Desktop.
Demonstrates the Codname One canExecute and Execute API's of Display
Boolean can = Display.getInstance().canExecute("imdb:///find?q=godfather");
if(can != null && can) {
Display.getInstance().execute("imdb:///find?q=godfather");
} else {
Display.getInstance().execute("http://www.imdb.com");
}
@codenameone
Copy link
Author

Sample usage of the execute methods of Display.

From the Codename One project

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