Hi Sathya, Ko Ko
I'm executing the HTTP Connection (Listing 7.1) from the book on Nokia S40 emulator. On Launching the MIDlet get the message, "HTTPMIDlet running. Nothing to display". The url I'm using is
http://google.com. I am also printing some values set in the HTTPConnection as given below-
lastModified: 0
host : google.com
encoding: null
url:
http://google.com
port: 80
content type: text/html; charset=UTF-8
got content type: text/html; charset=UTF-8
total bytes read: 1391
got data:[B@d590dbc
Is this output as expected? Probably it would open the web page while running on the actual device. (Currently do not have an S40 device handy)
Regards,