12-04-2009 09:22 PM
I'm trying to figure out how to create a button in my app that would go to a web site. Below is a button already set up in my app:
//Button to create email message
ButtonField btnSubmit = new ButtonField("Create eMail", ButtonField.CONSUME_CLICK){
protected boolean navigationClick( int status, int time ){
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES,
return true;
}
12-04-2009 10:51 PM - last edited on 12-04-2009 10:52 PM
Try the Browser api rather than Invoke.
Simplisticly you should first use Browser to get a BrowserSession, then use the BrowserSession to load your URI.
However, as always with BlackBerry it's not quite that straightforward. Check out the following link from the Developer Knowledgebase
I'm guessing you'll want to read from "BlackBerry Device Software 4.0 and later" on.