StreamConnection problem

Hello togehter!

I open my bluetooth connection on the device Nokia 6230i the following way:

String url = servicesFound[0].getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT,false);

is = connection.openInputStream();

reader =new InputStreamReader(is);

Everything works fine, then I read.

I read from a GPS receiver and I want to read for hours.

But after around 15 min the read statement just doesn't read and doesn't finish anymore and doesn't throw any error.

I thought that some buffer is full and so I tried to reopen the connection.

Then I found out that I cannot close the connection anymore after 2 mins.

So closed it every 2 mins.

The my application works fine until I have 17 connections because than my gps receiver turns off.

So what I want to do is to just reopen the reader and the input stream.

But when I close the stream it is still open.

Can anybody tell me how todo so?

Any solutions for the whole problem?

Thanks in advance.

Markus

[1134 byte] By [Markus1982a] at [2007-11-27 4:39:33]
# 1
Sorry I forgot to mention how I open the connection:connection = (javax.microedition.io.StreamConnection) Connector.open(url, Connector.READ);//, Connector.READ);Thanks a lot.Markus
Markus1982a at 2007-7-12 9:50:14 > top of Java-index,Java Mobility Forums,Java ME Technologies...