Launch a web browser on BlackBerry

The easiest way to launch a web browser from a BlackBerry application:

Browser.getDefaultSession().displayPage(URL);

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

+3
source share
1 answer

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

The following links provide more information about network paths 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

+2

Source: https://habr.com/ru/post/1779473/


All Articles