09-14-2012 04:53 AM - edited 09-14-2012 05:10 AM
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
10-30-2012 10:08 PM
Do you find a solution about this one? I run into same error.
11-02-2012 05:11 AM
No solution. i just believe it's a simulator error/ the simulator is too slow. sorry.
11-02-2012 08:04 AM
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)