Last active
July 8, 2020 09:57
-
-
Save codenameone/7aefb64909e75e10c396 to your computer and use it in GitHub Desktop.
Demonstrates the Codname One canExecute and Execute API's of Display
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
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"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample usage of the execute methods of Display.
From the Codename One project