John Woodsmall Active Member Licensed User Longtime User Aug 22, 2017 #1 how can i restart or reset to defaults an app?
Erel B4X founder Staff member Licensed User Longtime User Aug 22, 2017 #2 Where are you saving the app settings? Upvote 0
John Woodsmall Active Member Licensed User Longtime User Aug 22, 2017 #3 Sorry... i not sure i understand. i just have a regular app like always. i need to restart as i have changed the language and people can not read the screen to get back to english so i put a "Reset" button (in english), but it needs to start the app over (re-load) if possible. Upvote 0
Sorry... i not sure i understand. i just have a regular app like always. i need to restart as i have changed the language and people can not read the screen to get back to english so i put a "Reset" button (in english), but it needs to start the app over (re-load) if possible.
azzam223 Active Member Licensed User Longtime User Aug 22, 2017 #4 you can save the setting through statemanger module then you can reset to default setting through it Upvote 0
John Woodsmall Active Member Licensed User Longtime User Aug 22, 2017 #5 is there an example of:setting through statemanger module that i can see and try? Upvote 0
azzam223 Active Member Licensed User Longtime User Aug 23, 2017 #6 https://www.b4x.com/android/forum/threads/class-istatemanager-similar-to-b4a-statemanager.50818/ Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 23, 2017 #7 There is no single way to reset an app or reset its state. You can remove all views and then load them again: Code: Sub CreateLayout Page1.RootPanel.RemoveAllViews Page1.RootPanel.LoadLayout(...) Upvote 0
There is no single way to reset an app or reset its state. You can remove all views and then load them again: Code: Sub CreateLayout Page1.RootPanel.RemoveAllViews Page1.RootPanel.LoadLayout(...)