Hi
How is it possible to return an event from a raisevent from an external activity.
For example in Basic4Android we have this:
In java:
How is it possible to let the user choose to return false or true when an event is raised to a b4a sub
Regards,
Tomas
How is it possible to return an event from a raisevent from an external activity.
For example in Basic4Android we have this:
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'Return True to consume the event
If Keycode = KeyCodes.KEYCODE_BACK Then
Return False
Else
Return False
End If
End Sub
In java:
B4X:
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
return false;
}
How is it possible to let the user choose to return false or true when an event is raised to a b4a sub
Regards,
Tomas
Last edited: