Thanks Meter 0
Join Date: Mar 2011
Location: Newport, Isle of Wight
Bluetooth stops working after 12 hours
As the title says, after 12 hours with a BluetoothServerSocket open bluetooth stops and we have to turn it of and back on again to get it working again.
We are developing an application that runs on 2.2 for a client, we're using 2.2 as this allows us to use a large variety of low cost devices.
One thing our app does is to keep a BluetoothServerSocket open waiting for a connection from our clients custom hardware.
This socket is on a worker thread and so in some situations needs to exit. Closing the connection and trapping the exception does not work on all devices (they crash) and so I added a time out of 5 seconds, check of a thread exit condition, if no exit then wait again.
There are some very helpful people here, don't forget the press the 'thanks' button if they help you out.