I’m like working on an app that will call home when I press down the volume.
I have a working Dial / Call method. Now I need help figuring out how to get it all encapsulated in a method that will activate when the volume key down is pressed and held.
Any advice would help immensely.
You need to use the
onKeyLongPress()method to capture this event, something like this:This only captures the Volum down event, and passes everything else on back to it’s normal implentation.