Reputation: 5643
I am developing an Bluetooth application in android.Once connection is made between two devices i am sending data between two devices. My problem is whenever either of the devices Bluetooth is turned off i want that to be notified to other device and want to print a toast message stating that "Other device Bluetooth is turned off".How to do this?
Thanks
Upvotes: 1
Views: 1853
Reputation: 6975
You can monitor the bluetooth connection (listening to Broadcast action : ACTION_ACL_DISCONNECTED) and notify that the connection has gone. Dropping of connection does not necessarily mean it is powered off , but it is surely a side-effect.
Upvotes: 1