So, there is a function in BluetoothSocket called isConnected:
/**
* Get the connection status of this socket, ie, whether there is an
active connection with
* remote device.
* @return true if connected
* false if not connected
*/
public boolean isConnected() {
return mSocketState == SocketState.CONNECTED;
}
I noticed that if my Android has a Bluetooth connection to my computer and
I power down my computer, isConnected still returns true. Anyone know if
this can be fixed? I'm not sure if there's a Bluetooth heartbeat or not.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en