A Alex_197 Well-Known Member Licensed User Longtime User Mar 31, 2021 #1 Hi all. In B4A I have a code On each activity in my app there is a button Feedback. On click on this button on, for example Dashboard activity, my code is B4X: Copy Main.PreviousScreen="Dashboard" StartActivity(Feedback) Then on Feedback on click SendFeedback button after feedback is sent my code is B4X: Copy StartActivity(Main.PreviousScreen) that returns the user to the previous screen. How to do the same in B4i Default app? I know about ThreePages example and that's how my app works but my question is - is there any other way than just a huge select case where I will manually tell to the app what page to open based on the Main.PreviousPage variable value? Last edited: Mar 31, 2021
Hi all. In B4A I have a code On each activity in my app there is a button Feedback. On click on this button on, for example Dashboard activity, my code is B4X: Copy Main.PreviousScreen="Dashboard" StartActivity(Feedback) Then on Feedback on click SendFeedback button after feedback is sent my code is B4X: Copy StartActivity(Main.PreviousScreen) that returns the user to the previous screen. How to do the same in B4i Default app? I know about ThreePages example and that's how my app works but my question is - is there any other way than just a huge select case where I will manually tell to the app what page to open based on the Main.PreviousPage variable value?
Erel B4X founder Staff member Licensed User Longtime User Mar 31, 2021 #2 Just use B4XPages. Everything will be simpler and cross platform. Upvote 0
A Alex_197 Well-Known Member Licensed User Longtime User Mar 31, 2021 #3 Erel said: Just use B4XPages. Everything will be simpler and cross platform. Click to expand... But I need to modify existing app Upvote 0
Erel said: Just use B4XPages. Everything will be simpler and cross platform. Click to expand... But I need to modify existing app
A Alex_197 Well-Known Member Licensed User Longtime User Mar 31, 2021 #4 Problem solved by using this post https://www.b4x.com/android/forum/threads/callsub-using-string-based-module-name.110044/#post-687029 Upvote 0
Problem solved by using this post https://www.b4x.com/android/forum/threads/callsub-using-string-based-module-name.110044/#post-687029