Hello all,
First time using B4XPage... how can we catch the volume button in B4XPage like we used to be
My Old example :
I am able to catch 'back' key using Sub B4XPage_CloseRequest As ResumableSub
First time using B4XPage... how can we catch the volume button in B4XPage like we used to be
My Old example :
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'Return True to consume the event
Select Case KeyCode
Case 4 'BACK KEY
RaiseUserEvent("ExecReturn_Keycode_Key","BACK")
Case 24 'VOLUME UP
RaiseUserEvent("ExecReturn_Keycode_Key","VOLUP")
Case 25 'VOLUME DOWN
RaiseUserEvent("ExecReturn_Keycode_Key","VOLDOWN")
End Select
Return True
End Sub
I am able to catch 'back' key using Sub B4XPage_CloseRequest As ResumableSub