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 ]
subject: Help: Potential deadlock in commandAction() ?