Android Question Detect KeyDown. PLease EREL o EXPERT......

figorra

Member
Licensed User
Longtime User
Hi all,

I want to detect a KeyDown event like public boolean onKeyDown (int keyCode, KeyEvent event), but don't work......

During that time I want do something

I test with:

B4X:
Sub Activity_onKeyDown (KeyCode As Int) As Boolean 'Return True to consume the event

   If KeyCode = KeyCodes.xxxxxxx Then
  Log("Down")
  ToastMessageShow("Play LARGOOOOO", False)
  Return True
  End If

End Sub

Any ideas?

Is valid too longkeypress........
 

figorra

Member
Licensed User
Longtime User


EREL Please. Help to me. I search for days in forums, but no solution.......
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…