Android listen volume up button pressed 3 times

I am new to Android development and I want some function to call whenever user presses the Volume Up button 3 times (in Java). I am making an SOS application and want to implement this functionality.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum