dualznz Member Licensed User Longtime User Apr 29, 2013 #1 Hi all In my application that i am writing, i have 5+ activity modules what i would like to know am i able to stop a activity, so when i hit the back button on the phone it wont show up with the previous module. cheers
Hi all In my application that i am writing, i have 5+ activity modules what i would like to know am i able to stop a activity, so when i hit the back button on the phone it wont show up with the previous module. cheers
margret Well-Known Member Licensed User Longtime User Apr 29, 2013 #2 Use the code below: B4X: Sub Activity_KeyPress (KeyCode As Int) As Boolean If KeyCode = KeyCodes.KEYCODE_BACK Then Activity.Finish End If End Sub Upvote 0
Use the code below: B4X: Sub Activity_KeyPress (KeyCode As Int) As Boolean If KeyCode = KeyCodes.KEYCODE_BACK Then Activity.Finish End If End Sub