Android Question Scope and Activities

Shaun

Member
Licensed User
Longtime User
I understand how scope works in b4a. Globals are private to the module and Process Globals are public to the whole program.

I am having a problem. I have a list that is created and initialized in main. It is declared in Process globals, but I cannot access it in my other activity. Is there something I am missing? I get no intellisense when I try to use it in my second activity.

I experimented by instantiating a string variable with a value in my main process globals. I try to show it in a messagebox in the second activity, but I get an 'undeclared variable' error. What am I missing ?

-Thanks
 
Top