Android Question [SOLVED] Best place to put General Runtime Variables

scsjc

Well-Known Member
Licensed User
Longtime User
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?
 
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.
 
Upvote 0

Similar Threads

Replies
13
Views
10K
Replies
1
Views
1K
  • Article Article
Android Tutorial Google Place
Replies
12
Views
9K
Deleted member 103
D
Back
Top