wimpie3 Well-Known Member Licensed User Longtime User Jan 16, 2015 #1 Code: 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?
Code: 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?
Erel B4X founder Staff member Licensed User Longtime User Jan 18, 2015 #2 Intercept KeyUp instead. Upvote 0
wimpie3 Well-Known Member Licensed User Longtime User Jan 18, 2015 #3 Nope, not working, this is even worse, it shows the native volume control all the time, even during short presses. Upvote 0
Nope, not working, this is even worse, it shows the native volume control all the time, even during short presses.
NJDude Expert Licensed User Longtime User Jan 18, 2015 #4 Might be the device, on mine, I don't have that problem. Upvote 0