i am using a stream connection for the midp 1.0. The client logs into a server using a StreamConnection and all this is cool.
But the application waits at the DataInputStream.read and then thows the IOException.
my code is something like this,,
if ((i = dataInputStream.read()) == -1)
// some logic here
the dataInputStream.read() throws the exception after approximately 7 to 8 seconds.
anyone has an idea as to whats going wrong? why is the connection not being maintained.