Get value of certain toggle Button in settings

DrVanScott

New member
Hi,

to be more specific, I am looking for a way how to get the current state of Bluetooth tethering.

Currently i have a working Makro which automatically changes the current state of this setting (using an intent and a click), but this toggles the setting.

But i want to make sure that the macro always enables the setting. So it shouldn't do anything If tethering is already on.

Any suggestion?
 

Dimlos

Well-known member
When the Bluetooth tethering setting is changed, it is output to the logcat and can be checked by assigning it to a variable.
 

Attachments

  • Macro.jpg
    Macro.jpg
    759.1 KB · Views: 15
  • BluetoothTethering.macro
    6.1 KB · Views: 9
Top