11-09-2009 11:50 AM
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
Solved! Go to Solution.
11-10-2009 12:31 AM
Have you checked any exceptions getting generated?
Try it for some other web site address too.
11-10-2009 03:18 AM
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.
11-10-2009 08:15 AM - last edited on 11-10-2009 09:18 AM
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.
11-10-2009 10:07 AM
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?
11-10-2009 12:43 PM
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. ![]()