Is it possible to make an app with B4A where the volume button's behaviour is overridden? I would like to listen for short and long press, and then have the app act upon those instructions.
Sub Activity_KeyPress (KeyCode As Int) As Boolean
Select KeyCode
Case KeyCodes.KEYCODE_VOLUME_UP
Return True
Case KeyCodes.KEYCODE_VOLUME_DOWN
Return True
End Select
End Sub
dont know if volume long press is possible to intercept
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.