My app is able to set sound profiles like Meeting mode, night mode, normal… In each one you may select the volume value for incomming calls and for notifications. For example, Night mode has a volume for calls (in case I have an emergency call) and none for notification (in case a late email or whatsapp is received it will not wake me up).
It works pretty good so far but I found that it fails in Android 4 Ice Cream Sandwich. For some not understandable reason for me ICS ties together ring volume and notifications volume. So at night you will also hear annoying spams or SMSs.
Any idea how to split/untie them? Thanks in advance.
ICS+ has merged the ringer and notification volumes into one volume. There is no way via code to unlink these volume controls. However, you can wire up a adjust the new unified notification volume based on conditions. I use this in Audio Control when someone calls it applies a pre-chosen volume setting to mimic the ringer volume and adjusts back to the prior setting after the call has ended.