hello everyone!
I have a class library that needs to monitor key values in the background
I've been looking for it in the forum for a long time, only the one with activity has been found
But after using the customlayoutdialog cannot receive the key values!
I do not know if there are other better ways, thank you!
I have a class library that needs to monitor key values in the background
I've been looking for it in the forum for a long time, only the one with activity has been found
But after using the customlayoutdialog cannot receive the key values!
I do not know if there are other better ways, thank you!
KeyPress:
Sub Activity_KeyDown(Keycode As Int, KeyEvent As Object)
Dim jo As JavaObject = KeyEvent
Dim c As Int = jo.RunMethod("getUnicodeChar", Null)
If c > 0 Then
Log(Chr(c))
End If
End Sub
#if Java
public boolean _onkeydown (int keyCode, android.view.KeyEvent event) {
processBA.raiseEvent(null, "activity_keydown", keyCode, event);
return false;
}
#End If
Attachments
Last edited: