Can I change the function of the back button?

PharCyDeD

Active Member
Licensed User
Longtime User
Is there any way to make a panel pop up with options on it when the user press the back button instead of it just going back to the last activity?
 

stevel05

Expert
Licensed User
Longtime User
You can use the Activity_Keypress event sub.

Have a look at this thread.
 
Upvote 0

PharCyDeD

Active Member
Licensed User
Longtime User
One problem...when I click back it shows the menu, but still still goes back to the Main Menu activity. How can I stop this?
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
You need to consume the event with

B4X:
Return True

when you have finished processing.
 
Upvote 0
Top