John Woodsmall Active Member Licensed User Longtime User Jan 24, 2014 #1 I would like to put a button on the screen that resets or restarts an app? How do I do this? thanks
lemonisdead Well-Known Member Licensed User Longtime User Jan 24, 2014 #2 Hello, Have you already read this : http://www.b4x.com/android/forum/threads/how-to-restart-app.21139/ Upvote 0
Hello, Have you already read this : http://www.b4x.com/android/forum/threads/how-to-restart-app.21139/
John Woodsmall Active Member Licensed User Longtime User Jan 28, 2014 #3 Thanks for this...but It does not tell me how to "Restart" an app. I need to have a button that allows me to reset the variables to their orginal values and begin the app again. any thought on this? Upvote 0
Thanks for this...but It does not tell me how to "Restart" an app. I need to have a button that allows me to reset the variables to their orginal values and begin the app again. any thought on this?
DonManfred Expert Licensed User Longtime User Jan 28, 2014 #4 Just build a button and a button_click and in this sub you reset al variables to their default. Where is the problem? You don not neet to quit and restart it Upvote 0
Just build a button and a button_click and in this sub you reset al variables to their default. Where is the problem? You don not neet to quit and restart it
John Woodsmall Active Member Licensed User Longtime User Jan 28, 2014 #5 There are a number of things that have to happen when it starts for the 1st time can I just put those in the button as well? Things like VR .Initialize("VR") and TTS1.Initialize("TTS1") or not... ? Upvote 0
There are a number of things that have to happen when it starts for the 1st time can I just put those in the button as well? Things like VR .Initialize("VR") and TTS1.Initialize("TTS1") or not... ?
DonManfred Expert Licensed User Longtime User Jan 28, 2014 #6 In the thread posted above you can find possible solutions i think. The point is that you want to restart at your Mainactivity. So i suggest you do a start_activity(Main) or such? Then the mainactivity is initialized, created; You have the code there which do all that for you. Is it not enough to start your main again? Upvote 0
In the thread posted above you can find possible solutions i think. The point is that you want to restart at your Mainactivity. So i suggest you do a start_activity(Main) or such? Then the mainactivity is initialized, created; You have the code there which do all that for you. Is it not enough to start your main again?