Problem with the Blackberry browser
i am working on a application where i have image onwhich when u click it gets navigated to browser with a link but it dont display web page. now i need a 开发者_运维百科code for just displaying a simple web page in blackberry.. is it something to do with simulator and device as i am working with simulator.So kindly help me with it....I am newbie to blackberry.. thank you in advance for help..
The following code will open up the native browser to the URL you specify:
Browser.getDefaultSession().displayPage(url);
String url = "http://www.google.ca";
BrowserSession browserSession = Browser.getDefaultSession();
browserSession.displayPage(url);
browserSession.showBrowser();
There is a known issue where the browser won't automatically display in various firmware versions. To get around this, simply call browserSession.showBrowser()
精彩评论