I have an app that needs to detect when the volume keys are pressed. I can press the volume keys and the function is called just fine, but the volume still is changed.

How do I stop the popup from coming up and prevent the volume from changing?

I have tried using:


None of them work-- the volume popup still comes up... Anyone know how to prevent the popup from coming up?