Dynamic Ringtone - not switching
Moderator: Martin
Dynamic Ringtone - not switching
I created a flow that is supposed to change the ringtone depending on the incoming contact/group designation. Watching the flow and looking at the log, it correctly identifies the need to either change or not change the ringtone....but it does not.
I only change the ringtone if needed...and change it back to default, again, as needed. (I also track whether to raise the ring volume or ignore the call.)
Is this because the phone is already ringing?
Any suggestions on how to accomplish this?
I only change the ringtone if needed...and change it back to default, again, as needed. (I also track whether to raise the ring volume or ignore the call.)
Is this because the phone is already ringing?
Any suggestions on how to accomplish this?
Re: Dynamic Ringtone - not switching
Hi,
It could definitely be caused when the phone is already ringing since the phone will most likely not change the ringtone when it's already playing.
What device model and Android version are you using?
Workaround would be to set the ringtone to silent and play the correct ringtone from Automagic using and action Sound. This has the negative side effect that you have to stop playing the ringtone on your own.
Regards,
Martin
It could definitely be caused when the phone is already ringing since the phone will most likely not change the ringtone when it's already playing.
What device model and Android version are you using?
Workaround would be to set the ringtone to silent and play the correct ringtone from Automagic using and action Sound. This has the negative side effect that you have to stop playing the ringtone on your own.
Regards,
Martin
Re: Dynamic Ringtone - not switching
I am using a Droid Razr Maxx (XT912) running CyanogenMod v11-201560626-SNAPSHOT-XNG3CAO1L8-spyder on Android v4.4.4.
I moved the flow around a bit...along the lines you were thinking. Keeping the default ringtone for Starred and only changing if incoming call is a friend or non-contact.
Again, didn't work. The log and watching the flow indicate it is make all the right decisions/moves...just not changing the ringtone while the phone is ringing.
I moved the flow around a bit...along the lines you were thinking. Keeping the default ringtone for Starred and only changing if incoming call is a friend or non-contact.
Again, didn't work. The log and watching the flow indicate it is make all the right decisions/moves...just not changing the ringtone while the phone is ringing.
Re: Dynamic Ringtone - not switching
Already ringing ringtone doesn't change, because it's loaded in the memory and play from there. Changing the setting does not change that, it only changes what sound will be loaded onto memory. So there's no fix for that.
What martin said was to change ringer mode to silent and have Automagic play the sound. It's dirty trick but it works.
What martin said was to change ringer mode to silent and have Automagic play the sound. It's dirty trick but it works.
Re: Dynamic Ringtone - not switching
I understood Martin's suggestion regarding playing a sound...I was trying to get around that.
I've come up with the flow below. It isn't neat, but does work.
I did try writing the sound file to a playsound.ogg for each different branch, but I am afraid of have the call go to voice message if the flow takes to long and I never hear the ring.
If I were to save the ring sound to a variable, can I have the Sound action play the variable? (I couldn't find this in the documentation.)
I've come up with the flow below. It isn't neat, but does work.
I did try writing the sound file to a playsound.ogg for each different branch, but I am afraid of have the call go to voice message if the flow takes to long and I never hear the ring.
If I were to save the ring sound to a variable, can I have the Sound action play the variable? (I couldn't find this in the documentation.)
Re: Dynamic Ringtone - not switching
You can't save the sound itself into variable but rather the location of the sound file. In sound action change sound type to "file" and then you can use the variable containing the location of the sound.
Check the action help under file section. It says it supports variables in blue text(link). Clicking the link gives you more help how to use variables.
Check the action help under file section. It says it supports variables in blue text(link). Clicking the link gives you more help how to use variables.
Re: Dynamic Ringtone - not switching
Thank you. I updated my flow...much cleaner and it works!
Do I need to explicitly use the Stop Flow or does Automagic understand some boxes just terminate?
Do I need to explicitly use the Stop Flow or does Automagic understand some boxes just terminate?
Re: Dynamic Ringtone - not switching
When the last action is executed, the flow will stop. By looking the screenshot I can't see any problem in your flow.jarid wrote:Do I need to explicitly use the Stop Flow or does Automagic understand some boxes just terminate?
Re: Dynamic Ringtone - not switching
Great. Thank you.