The nature of the views used requires a redraw. I already have the code that does what is required for the screen change orientation.
So in this case I basically need to trigger some sort of configuration change event, which mimics the Activity Lifecycle of a Screen Orientation Change i.e. Pause -> Create -> Resume
I've done it before manually by just doing what the app already does when creating the activity. You have to remove all the views, and execute the subs that declare the variables (to reset them).
B4X:
Sub Restart
Activity.RemoveAllViews
Process_Globals
Globals
Activity_Create(True)
Activity_Resume
End Sub
I've done it before manually by just doing what the app already does when creating the activity. You have to remove all the views, and execute the subs that declare the variables (to reset them).
B4X:
Sub Restart
Activity.RemoveAllViews
Process_Globals
Globals
Activity_Create(True)
Activity_Resume
End Sub