Toggle CM13 AudioFX on/off using intent
Moderator: Martin
Toggle CM13 AudioFX on/off using intent
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 874 times
Re: Toggle CM13 AudioFX on/off using intent
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
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