scsjc Well-Known Member Licensed User Longtime User Sep 13, 2018 #1 Hello, where is the best place to put general Runtime Variables, like : "maps, lists, username, currentlanguage ..." -Starter Service (Process_Globals) -Main Module (Process_Globals) -Code Module (Process_Globals) So far, I think the best place is : StartService In last version android 8... the Starter is Destoy.... and B4A V8.30 fix that : ** Service (starter) Destroy (ignored) ** https://www.b4x.com/android/forum/threads/automatic-foreground-mode.90546/ In a future is a good place to use Starter Service to put Runtime Variables, or where is the best place?
Hello, where is the best place to put general Runtime Variables, like : "maps, lists, username, currentlanguage ..." -Starter Service (Process_Globals) -Main Module (Process_Globals) -Code Module (Process_Globals) So far, I think the best place is : StartService In last version android 8... the Starter is Destoy.... and B4A V8.30 fix that : ** Service (starter) Destroy (ignored) ** https://www.b4x.com/android/forum/threads/automatic-foreground-mode.90546/ In a future is a good place to use Starter Service to put Runtime Variables, or where is the best place?
E edgar_ortiz Active Member Licensed User Longtime User Sep 13, 2018 #2 Hi, in the same post you quoted: Update: Starting from B4A v8.3 the starter service will never be killed unless the whole process is killed. This means that you can always assume in your code that the starter service is running. It is done internally by changing the starter service context to the application context. Click to expand... Upvote 0
Hi, in the same post you quoted: Update: Starting from B4A v8.3 the starter service will never be killed unless the whole process is killed. This means that you can always assume in your code that the starter service is running. It is done internally by changing the starter service context to the application context. Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Sep 14, 2018 #3 The starter service is indeed a good place. There are other possible options. You can have a class for example that is initialized from the starter service. Upvote 0
The starter service is indeed a good place. There are other possible options. You can have a class for example that is initialized from the starter service.
scsjc Well-Known Member Licensed User Longtime User Sep 14, 2018 #4 Erel said: The starter service is indeed a good place. There are other possible options. You can have a class for example that is initialized from the starter service. Click to expand... Thanks Upvote 0
Erel said: The starter service is indeed a good place. There are other possible options. You can have a class for example that is initialized from the starter service. Click to expand... Thanks