i have blackberry application and i try to display html text in a browser
i try
BrowserSession bSession = Browser.getDefaultSession();
bSession.displayPage("http://www.blackberry.com");
this page success but it display page in blackberry browser not in my own browser, and i don't need that
than i try
myBrowserField = new BrowserField();
add(myBrowserField);
myBrowserField.requestContent("http://www.blackberry.com");
this method displays error 104
and i try
BrowserFieldRequest test = new BrowserFieldRequest("http://www.blackberry.com");
BrowserField myBrowserField = new BrowserField();
add(myBrowserField);
myBrowserField.requestContent(test);
the last 2 methods
it gives no error and display empty browser but after 120 seconds it gives connection timeout
Note: i try different url but it didn't solve the problem
any help,
Regarding the BrowserField
,
If you are using a simulator, you should enable MDS-CS (Mobile Data System Connection Service) for the BrowserField
to work properly (I don't know any other way). If MDS-CS is not enabled, follow this guide "Testing a BlackBerry device application with the BlackBerry Smartphone Simulator" on how to enable it.
If the MDS-CS is enabled, but you are using JRE 7.0.0 (9930 simulator), then the problem is that the MDS-CS version supplied with JRE 7.0.0 is incorrect (the symptom is that the MDS-CS window doesn't show up when you run the simulator). Check my answer for "Blackberry BrowserField error in Simulator" or "Blackberry webview can not connect to internet and/or display a web page" for more details and instructions.
Hope that one of the aforementioned will work for you.