How to Invoke Mobile WAP Browser via MIDP !
Hello ALL,
I am very new to J2ME World, my intention is to open BBC news wap site in my Default Mobile WAP Browser via a MIDP.
For that i had executed the below code:
HelloMidlet.java
===============
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class HelloMidlet extends MIDlet {
public HelloMidlet() {
}
public void startApp() {
}
HelloMidlet h;
public void launchApp(String url){
try{
boolean test = h.platformRequest("http://www.bbc.co.uk");
}catch(Exception e){
System.out.println("problem with the connection.."+e);
}
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
}
===============
Test Result
===============
Project settings saved
Building "HelloMidlet"
Build complete
Running with storage root DefaultColorPhone
Testing
===============
But the emulator is not displaying BBC pages when i am trying to click on "Launch" button
Also when i installed and tested in my Nokia Handset it is displaying the following text after opening:
"%U running. Nothing to display"
Please if some one can modify the above code and send back so that i can open BBC site in my mobile Browser via MIDP
Many Many thanks in advance.
J2meWare

