Hello,
I am programming an app with several activity modules and one main activity. In the main activity in sub process_globals I have defined a few global variables that are used in all activities.
When I start the main activity and from there some of the other activities all is fine.
But sometimes I need to start a sub activity directly. The problem is that the global variable is then empty.
How can I work around that?
Second question is about layout colors. I have two color themes for the app. What is the best way of saving and loading the colors? Now I have the global variables where I save the color in for all the activities and a code module with sub to load the different colors to the variables. Any advice for how to do this efficiently?
Thanks!
Regards
I am programming an app with several activity modules and one main activity. In the main activity in sub process_globals I have defined a few global variables that are used in all activities.
When I start the main activity and from there some of the other activities all is fine.
But sometimes I need to start a sub activity directly. The problem is that the global variable is then empty.
How can I work around that?
Second question is about layout colors. I have two color themes for the app. What is the best way of saving and loading the colors? Now I have the global variables where I save the color in for all the activities and a code module with sub to load the different colors to the variables. Any advice for how to do this efficiently?
Thanks!
Regards