Help for strings

Nawepej

New member
Hey, everyone. Would you happen to know what are the 'string' names for block/allow mic access and camera access and for bedtime mode? Also, is there any string for NFC on/off as a trigger? For example, the string for activating/deactivating glyphs is 'led_effect_enable' while for extra dim it's 'reduce_bright_colors_activated'. Thank you!
 

Jacob L

Moderator (Lawsonator)
Automate has a settings finder, you can use it to detect changes when you use them tiles. I suspect there aren't any though
 

Alan Eaton

New member
For NFC on/off...

Listen for intent:
android.nfc.action.ADAPTER_STATE_CHANGED

Use constraint:
NFC State (Enabled/disabled)

to check NFC status and set a variable to true or false accordingly.

Elsewhere, you can use changes in your variable as a trigger.
 

Endercraft

Moderator (& bug finder :D)
For NFC on/off...

Listen for intent:
android.nfc.action.ADAPTER_STATE_CHANGED

Use constraint:
NFC State (Enabled/disabled)

to check NFC status and set a variable to true or false accordingly.

Elsewhere, you can use changes in your variable as a trigger.
Confirmed that it worked, however for me the intent fired twice.
 

Nawepej

New member
Automate has a settings finder, you can use it to detect changes when you use them tiles. I suspect there aren't any though
Indeed there was nothing for allow/disallow camera/mic access. I found the one for bedtime mode, but the values varied each time.
 

Nawepej

New member
For NFC on/off...

Listen for intent:
android.nfc.action.ADAPTER_STATE_CHANGED

Use constraint:
NFC State (Enabled/disabled)

to check NFC status and set a variable to true or false accordingly.

Elsewhere, you can use changes in your variable as a trigger.
How exactly do I add this as a trigger, please?
 

MacroDroidDev

Administrator
Staff member
Just as aside: In v5.32 (first beta just released on the forum) it will be possible to make your own Settings finder as MacroDroid now includes a system setting trigger.
 

Alan Eaton

New member
Confirmed that it worked, however for me the intent fired twice.
That is because the NFC adapter actually has 4 states:

ON
changing from ON to OFF
OFF
changing from OFF to ON

That is why I suggested checking the state using the constraint and setting a variable and using the variable changes as triggers elsewhere.
 
Top