Android Question Global events for page changing and closing in B4XPages?

Spavlyuk

Active Member
Licensed User
Is it possible to determine when a page changes or is closed outside of a particular page?
I would like to implement common functionality for all pages, preferably without copying the same code to all pages.
In my specific scenario I would like to focus the last focused view when the user navigates back to the previous page. This is something that got automatically handled with activities but no longer works with B4XPages. I could store the last focused view in a variable on every page but I'd rather avoid this approach.
 
Top