Dear All,
I want to go to a menu named "choice" in my app when pressing the back button. But what it does is loading the page, and then shows me the android desktop right after that, so it leaves the app. How do I prevend it from exiting?
Here´s my event:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then '
Activity.RemoveAllViews
Activity.loadlayout ("choice")
End If
End Sub
Thanks in advance!
I want to go to a menu named "choice" in my app when pressing the back button. But what it does is loading the page, and then shows me the android desktop right after that, so it leaves the app. How do I prevend it from exiting?
Here´s my event:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then '
Activity.RemoveAllViews
Activity.loadlayout ("choice")
End If
End Sub
Thanks in advance!