Reading volume increase

I'm building an app that functions as a remote control and I want to be able to use the volume up button as a trigger that will send a signal to my Arduino board. Even if the volume is at max, I want the app to register that I'm pressing the button. Is there a way to solve this?

image

How do you connect "Button3" to the volume button?

Button3 is the Volume Up button ?

No, on the side of the phone (the physical button)

Ah, perhaps this extension will help you: