I would like when the user press the BACK button, the App behave like if he pressed HOME.
I know how intercept the BACK button, but I can't simulate the HOME.
This is my failed attempt:
Any hints ?
Marco
I know how intercept the BACK button, but I can't simulate the HOME.
This is my failed attempt:
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode= KeyCodes.KEYCODE_BACK Then
Dim KC As Int
KC = KeyCodes.KEYCODE_HOME
Activity_KeyPress (KC)
Return True
End If
End Sub
Any hints ?
Marco