Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > App Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 05-04-2010, 01:24 AM
CrackBerry Newbie
 
Join Date: May 2010
Posts: 1
Likes Received: 0
Thanked 0 Times in 0 Posts
Exclamation BrowserContent and RenderingApplication with cookies

Hi

In my BB application I need to open some content in the browser. While I had
some problems in using the default browser I start with using the BrowserContent
class and RenderingApplication class with which I can simply show the content and what is more, I can manage the browser (open, close,...).

Of course I have developed this feature based on the BrowserFieldDemo sample
in the JDE samples.

The problems occured when I realized that I have to set some cookies before
opening the "internal" browser which carry some informations of the logged user.

I have also tried to set the cookies in the HttpHeaders before calling the
BrowserContent, but because of redirecting inside the browser I have a
thought that I loose the cookies.

Can someone give me an idea or maybe a sample how I can use the
BrowserContent class and set specific cookies.

In the sample there is also a method :
public String getHTTPCookie(String url)

and a CASE:
case Event.EVENT_SET_HTTP_COOKIE :

but I don't know how to use this two parts for my problem.


I am using JDE 4.5

Thank you for all help
Mitja
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > App Developers   BrowserContent and RenderingApplication with cookies

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes