Pooya1 Active Member Licensed User Nov 22, 2018 #1 Hi Can i close all pages from navigation in B4i? Example in B4a : B4X: Dim jo As JavaObject jo.InitializeContext jo.RunMethod("finishAffinity", Null) Tip: I dont want to use Stack
Hi Can i close all pages from navigation in B4i? Example in B4a : B4X: Dim jo As JavaObject jo.InitializeContext jo.RunMethod("finishAffinity", Null) Tip: I dont want to use Stack
Erel B4X founder Staff member Licensed User Longtime User Nov 22, 2018 #2 You can call NavControl.SetPagesStack with a different page to remove all other pages. Upvote 0
Pooya1 Active Member Licensed User Nov 22, 2018 #3 Erel said: You can call NavControl.SetPagesStack with a different page to remove all other pages. Click to expand... Is it necessary to page should be initialized first or can i add page first and then initialize it? Upvote 0
Erel said: You can call NavControl.SetPagesStack with a different page to remove all other pages. Click to expand... Is it necessary to page should be initialized first or can i add page first and then initialize it?
Erel B4X founder Staff member Licensed User Longtime User Nov 22, 2018 #4 It should be initialized before you show it. Upvote 0