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

