Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 77
Registered: ‎11-20-2008
My Device: Not Specified
Accepted Solution

Embedded browser issue/RenderingSession clarification

I have taken the BrowserDemo sample code and tried to create an embedded browser in my application.  It seems, however, that some pages will not be able to load properly.  More specifically, if there are some pages that require some sort of session (meaning subsequent page views require some session variables), the pages won't load. 

 

Looking through the browser demo, it seems like the RenderSession.getBrowserContent(...) method is not too clearly documented in the APIs.  Does it just take the connection and the url and try and get the browser content response, without any knowledge of the previous renderings?  Does it not handle browser sessions correctly? (not supported?)

BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Embedded browser issue/RenderingSession clarification

Note that the BrowserFieldDemo sample does not implement cookies, which are generally required for a web site session.  Please refer to the following.

 

How To – Enable cookies in BrowserField 
Article Number: DB-00675

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800440/How_To_...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 77
Registered: ‎11-20-2008
My Device: Not Specified

Re: Embedded browser issue/RenderingSession clarification

Thanks Mark.  I'll check that out.
Developer
Posts: 905
Registered: ‎02-07-2009
My Device: BlackBerry Torch 9800
My Carrier: Globe Telecom

Re: Embedded browser issue/RenderingSession clarification

Hi,

 

where you able to make this work? i'm encountering difficulties following the how-to article. Thanks