I have an Android application running on a Samsung Galaxy S phone. The application collects sensor data via bluetooth from a device. For the most part, there is no data being sent/received. I have set up my application so that it "auto-reconnects" with the Bluetooth device in case the connection is "lost".
I observe that after about 1.5 hours of my application running, the phone loses connection with the Bluetooth device and the auto-reconnect fails.
The sending of sensor data from the device to the phone is "mission critical". How can I ensure that the connection is not lost. The solution needs to be optimal. That is, to conserve battery, the phone needs to be able to sleep / hibernate.