• Post Reply Bookmark Topic Watch Topic
  • New Topic

Disconnect SocketConnection on Handspring  RSS feed

Chris Bilinski
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem with phisically disconnecting wireless ethernet card from MIDlet. I'm using Handspring Visor Neo with Xircom Wireless Ethernet Module.
Here is part of code:
StreamConnection c = null;
DataInputStream socketIn = null;
DataOutputStream socketOut = null;

c = (StreamConnection)Connector.open(serverUrl, Connector.READ_WRITE, true);
socketOut = c.openDataOutputStream();
socketIn = c.openDataInputStream();

// reading and writing data
//---------- finalize ----------

try {
c = null;
} catch (IOException e) {


The problem is, that when I close the connection, the Xircom card is still acting and the only way I can put it in "standby mode" is to choose "disconnect" from MIDlet menu.
Is there any other way to do it? Please help me, it is urgent.
Chris Bilinski
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!