Created
February 4, 2011 16:36
-
-
Save mwbrooks/811330 to your computer and use it in GitHub Desktop.
Quick example of invoking a browser window using BlackBerry WebWorks
This file contains 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
// | |
// only invoke the browser when using BlackBerry WebWorks | |
// | |
if (typeof blackberry !== 'undefined') { | |
var args = new blackberry.invoke.BrowserArguments('http://phonegap.com'); | |
blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER, args); | |
} |
This file contains 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
<!-- ... --> | |
<feature id="blackberry.invoke" version="1.0.0"/> | |
<feature id="blackberry.invoke.BrowserArguments" version="1.0.0"/> | |
<feature id="blackberry.identity" version="1.0.0"/> | |
<!-- ... --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment