Reputation: 342
Is there is any method to check the status of bluetooth connection whether it is connected or not to mobile from pc j2se program. I am using bluecove2.1.1 for bluetooth connection.
Upvotes: 1
Views: 1046
Reputation: 10290
If you just want to check if it is closed or opened, you could use the isClosed method from BluetoothConnectionAccessAdapter, which returns a boolean value.
See documentation for more info: http://bluecove.org/bluecove/apidocs/index.html.
Upvotes: 2