How to turn on/off bluetooth

Former Member
Former Member
Hi all,

I often have disconnections between my vivoactive and my android phone, especially since I updated to android 6 and android 7.

It makes it necessary to turn off/on bluetooth in menu/parameters/bluetooth.

I searched a way to perfom this action by code. There should be some API for that, but I was unable to find it... only able to use phoneConnected in DeviceSettings...

Can someone help me on that ?

Thank you all.
BR.