B4J Question [ABMaterial] How to navigate to the previous page

Anser

Well-Known Member
Licensed User
Longtime User
Hi,

I am wondering how to implement the "Previous page" navigation "<-- Back" ie on the Navigation Bar, I will have back arrow, when the user clicks on it it should take the user to the previous page. (Something very common in the Android application.). Of course on a web browser, user can use the Web browser's back button to go back to the previous page.

I know that I can add the back arrow using the following code but does not know how to call the previous page. Is there any mechanism available within ABM application to know what was the the previous page ?
B4X:
page.NavigationBar.AddTopItemEx("PrevPage", "Previous Page", "mdi-action-input", "", ABM.VISIBILITY_ALL,ABM.COLOR_WHITE, "", ABM.ICONALIGN_CENTER)

Any help will be appreciated
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…