I try to develop a simple MIDlet for my Nokia 7650 that sets up a standard socket connection and sends a simple String message to the server.
OutputConnection con = (OutputConnection) Connector.open("socket://addr:4711");
DataOutputStream out = con.openDataOutputStream();
out.writeUTF("Midlet says: Hi!");
In my emulator everything works fine. Running the same MIDlet on my 7650 the writeUTF blocks. After closing the application the message is sent to the server.
What could be the reason for this strange behaviour?