Until now, I have been doing my static initialisation in a "on start of layout".
However, on mobile, the user can switch between portrait and landscape layouts. Each time they switch back to portrait, I am guessing that "On start of layout" is run (although I dont know this for sure).
The question is, how to only run something once ever, no matter how many times the layout is swapped?
E.g. could I do:
Global DoneInit = 0
System DoneInit = 0 -> System set DoneInit to 1
-> (do static initialisation of stuff)
And this only ever get called once, or do global vars also get re-initialised when you switch layouts?