Android Question Global variable

Giusy

Active Member
Licensed User
I have a problem with global variable.
I need to have one global variable. This variable may be changed in evary of my six activity.
What are the instrucion that I need to write in every activity?
Thanks
 

Peter Simpson

Expert
Licensed User
Longtime User
You can store shared variables in the starter service @Giusy/

In starter service.
B4X:
Public TestString As String

In any activity.
B4X:
Starter.TestString = "Hello World"

Enjoy...
 
Last edited:
Upvote 0
Top