If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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
Contributor
ninelein
Posts: 18
Registered: ‎08-31-2012
My Device: n/a
My Carrier: n/a

BrowserField "Error displaying content for: local:///index.html. error message. failed to create renderer."

[ Edited ]

When i run my BrowserField App the first time on a Simulator, an Error occurs:

 

"Error displaying content for: local:///index.html. error message. failed to create renderer."

 

When I close the app und open it again it works fine, but it loads quite slowly. what's wrong?

 

 

-

here's my code:

 

package mypackage;

import net.rim.device.api.ui.container.*;
import net.rim.device.api.browser.field2.*;
import net.rim.device.api.ui.*;

class MyBrowserField2Sample extends UiApplication
{    
    private MainScreen _screen;
    private BrowserField _bf2;
        
    MyBrowserField2Sample()  
    {        
        _bf2 = new BrowserField();

        _screen = new MainScreen();
            _screen.add(_bf2);
        pushScreen(_screen);

        _bf2.requestContent("local:///index.html");
    }

    public static void main(String[] args)
    {
        MyBrowserField2Sample app = new MyBrowserField2Sample();        
        app.enterEventDispatcher();        
    }
}

--

Screen:

package mypackage;

import net.rim.device.api.ui.container.MainScreen;

/**
 * A class extending the MainScreen class, which provides default standard
 * behavior for BlackBerry GUI applications.
 */
public final class MyScreen extends MainScreen
{
    /**
     * Creates a new MyScreen object
     */
    public MyScreen()
    {        
        // Set the displayed title of the screen       
        setTitle("Wissen Aktuell");
    }
}

 

thanx,

nine

Please use plain text.
yq
New Member
yq
Posts: 2
Registered: ‎10-30-2012
My Device: 9900
My Carrier: rogers

Re: BrowserField "Error displaying content for: local:///index.html. error message. failed to create renderer."

Do you find a solution about this one? I run into same error.

Please use plain text.
Contributor
ninelein
Posts: 18
Registered: ‎08-31-2012
My Device: n/a
My Carrier: n/a

Re: BrowserField "Error displaying content for: local:///index.html. error message. failed to create renderer."

No solution. i just believe it's a simulator error/ the simulator is too slow. sorry.

Please use plain text.
Developer
MFSI
Posts: 80
Registered: ‎09-03-2012
My Device: 9810
My Carrier: Vodafone

Re: BrowserField "Error displaying content for: local:///index.html. error message. failed to create renderer."

Yes I think its a simulator error

 

Before all first you need to run your MDS

If MDS is not running , then there is a problem in simulator(mainly in simulator with version 7.0)

 

To correct just copy MDS folder from your simulator directory for 6.0 and replace the MDS folder in simulator(7.0)

 

http://stackoverflow.com/questions/9364310/blackberry-webview-can-not-connect-to-internet-and-or-dis...

 

http://supportforums.blackberry.com/t5/Java-Development/MDS-not-working-on-OS-7-0-simulator-9930/td-...

 

 

Always Success
Please use plain text.