Normally you try to do networking in a seperate thread, and not for example inside the body of a method like commandAction. This is because the networking may block. (By avoiding (possibly) blocking in the UI thread, you also help to keep the MIDlet's user interface alive and responsive for the end-user.) You might try looking at an example of a multithreaded MIDP networking. (For example, Jonathan Knudsen's http://wireless.java.sun.com/midp/articles/threading/ is one such example.) Hope this helps [ October 01, 2003: Message edited by: james reilly ]
How do they get the deer to cross at the signs? Or to read this tiny ad?
Programmatically Create PDF Using Free Spire.PDF with Java