Toggle CM13 AudioFX on/off using intent

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
EBen
Posts: 13
Joined: 27 Aug 2014 08:06

Toggle CM13 AudioFX on/off using intent

Post by EBen » 25 Nov 2016 07:24

My goal: Toggle cyanogenmod 13 AudioFx on/off using an intent/activity. I tried this with Automagic's "Start activity" action, but without success. See the attached manifest.xml of AudioFX. If I understand correctly, it defines an intent filter "org.cyanogenmod.audiofx.action.TOGGLE_DEVICE", but I don't manage to set the parameters of the "Start activity" action to make it work as desired. What can I do?
Attachments
manifest.xml
Manifest.xml of CM13 AudioFX
(5 KiB) Downloaded 869 times

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Toggle CM13 AudioFX on/off using intent

Post by Martin » 25 Nov 2016 19:33

Hi,

The intent-filter for action org.cyanogenmod.audiofx.action.TOGGLE_DEVICE is defined within a receiver element so the intent needs to be sent as a broadcast, not as an activity-intent.
Using action Send Broadcast with org.cyanogenmod.audiofx.action.TOGGLE_DEVICE should work.

Regards,
Martin

Post Reply