Is there any way to call the B4XPage_Created sub again to reload data into the page?
Since B4XPages keep their previous state and can't be destroyed, I need a way to refresh the content.
I've tried all the suggested solutions on the forum, but none of them worked.
B4XPage_Created is always executed only once and that's right.
It's very simple to solve your problem: create a public Sub that contains the initializations that you need to repeat multiple times.
Is there any way to call the B4XPage_Created sub again to reload data into the page?
Since B4XPages keep their previous state and can't be destroyed, I need a way to refresh the content.
I ran into a similar problem when creating a menu program. It took me a while to realize that the B4XMainPage is a page that behaves differently. You can easily enter an error free command, B4XPages.ShowPageAndRemovePreviousPages in the B4XMainPage, but unlike the other B4XPages, the content is not refreshed because the B4XMainPage has only been made invisible.
The solution for this is to only do the initialization in the B4XMainPage and include any shared variables, but to place your program functionalities in a separate B4XPage if you want to be able to refresh the content.