Ed Marty
Ed Marty

Reputation: 39700

Launching a Web Browser on BlackBerry

The simplest way to launch a web browser from within a blackberry app is:

Browser.getDefaultSession().displayPage(URL);

Is there any reason I would need to use Browser.getSession(UID) instead of Browser.getDefaultSession()? What does that provide for the average use of opening a web browser that the default session does not, if all I'm worried about is showing the URL provided?

Upvotes: 3

Views: 612

Answers (1)

Richard
Richard

Reputation: 8920

getDefaultSession() returns the session for the default browser, getSession(UID) gets the session for the connection specified by the UID which might be: BES, BIS_B, WAP, etc.

The following links provide a great deal of information on network trasports and browser sessions:

http://supportforums.blackberry.com/t5/Java-Development/Network-Transports/ta-p/446834

http://supportforums.blackberry.com/t5/Java-Development/Networking-Transports-II/ta-p/446742

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800440/How_To_-_Invoke_the_browser.html?nodeid=1487366&vernum=0

Upvotes: 2

Related Questions