Android Question Problem with intercepting VOLUME buttons

wimpie3

Well-Known Member
Licensed User
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
    Select KeyCode
        Case KeyCodes.KEYCODE_VOLUME_UP
           'do volume up code
            Return True
        Case KeyCodes.KEYCODE_VOLUME_DOWN
          'do volume down code
            Return True
    End Select
   Return False
End Sub
This works fine when you CLICK the volume keys (short down/up). However, if I keep the buttons down, the native volume interface from my phone shows up on the screen... why?
 

wimpie3

Well-Known Member
Licensed User
Nope, not working, this is even worse, it shows the native volume control all the time, even during short presses.
 
Top