开发者

Problem with the Blackberry browser

开发者 https://www.devze.com 2022-12-28 12:49 出处:网络
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 simp

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()

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号