androidbluetoothheadphones

Shut down bluetooth after closing connection


I recently bought a bluetooth headphone to pair with my Experia Z3. I was wondering what code I might use to develop an app that will automatically shut off bluetooth on my phone after it loses connection with the headphones. I tried looking into some code but I couldn't really find what I was looking for.

Kind regards,


Solution

  • Here is a question that may help your thought processEnable/Disable Bluetooth.You can build upon this to your specific task.