Reputation: 39700
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
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
Upvotes: 2