Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
robbatt
Posts: 21
Registered: 11-09-2009
Accepted Solution

BrowserFieldDemo not working properly in JDE 4.7.0

Hi,

 

having a problem with the BrowserFieldSampleApplication. Stepped it through with the newest eclipse plugin and debugger. Once with 4.7.0, once with 4.6.0 (which is the version i need for developing for my Bold 9000) .  MDS Services Simulator is running. Didn't get any exception or error so far, everything runs through fine. Problem is that after the default site (hardcoded http://www.google.com) has been loaded the screen is still blank, even though finishLoading()(Developers Reference says it is needed to render the site in the target field after fetching it) has been executed without errors.

 

Standard HttpDemo and Browser in the Emulator work, so no clue why the BrowserField doesn't.

 

My project contains:

BrowserFieldSampleApplication.java

Utilites.java

SecondaryResourceFetchThread.java

 

Any clues what might be wrong?

 

 

Cheers,

rob

 

Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: 07-15-2008

Re: BrowserFieldDemo not working properly in JDE 4.7.0

Have you checked any exceptions getting generated?

 

Try it for some other web site address too.


Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
Developer
editormax
Posts: 133
Registered: 07-20-2009

Re: BrowserFieldDemo not working properly in JDE 4.7.0

Did you try to using the simulator browser to connect to the web site first for testing the network is fine.
Which can make sure your MDS is working properly.

Please use plain text.
Developer
robbatt
Posts: 21
Registered: 11-09-2009

Re: BrowserFieldDemo not working properly in JDE 4.7.0

[ Edited ]

Yes, had a global try catch block around the hole thing, and another on around the run() method in the thread that is supposed to render browser field, but no exceptions were caught.

 

Also i added a textinput field from the HTTPDemo to enter some web site adresses ... same behaviour.

 

Could there be something wrong with my simulator settings?

 

Edit: yes, already tried the default browser, network settings are fine.

 

Edit: Downloaded the JDE IDE v4.6.0 again and it seems to work. Might have messed something up when playing around with the code. Will try to modify the code to my needs again and come back to you later if the problem should occur again. Thanks a lot anyway.

Please use plain text.
Developer
robbatt
Posts: 21
Registered: 11-09-2009

Re: BrowserFieldDemo not working properly in JDE 4.7.0

Found the Solution.

 

Seems the BrowserFieldDemo Project does not work as standalone. When I tried the BrowserContentManagerDemo everything worked as I expected it. Seems BFD somehow depends on files of BCMD. Could that be?

Please use plain text.
Developer
johnbibs
Posts: 903
Registered: 02-07-2009
My Carrier: Globe Telecom

Re: BrowserFieldDemo not working properly in JDE 4.7.0

Hi robbatt,

 

Check in the BrowserFieldDemo.java processConnection() if you have this:

 

 

           synchronized (Application.getEventLock()) 
                     {
                        _mainScreen.deleteAll();
                        _mainScreen.add(field);
                    }

 

 

Then try to add some system out in the RenderingException catch block. :smileyhappy:

 

Please use plain text.