I need a wide implementation of the replica receiver, where the user can check whether the phone goes from Ringer mode to silence or quiet to vibrate and vice versa.
int volumeValue = (Integer)intent.getExtras().get("android.media.EXTRA_VOLUME_STREAM_VALUE");
I tried this code, but it will not help me, because it gives the same value from the call, so that it is silent and silent, to vibrate, and vice versa. I really want to catch the action when the phone goes from ringer mode to quiet and quiet to vibrate. Thanks in advance
source share